Modified: branches/snapshots/app/models/pack.rb (3203 => 3204)
--- branches/snapshots/app/models/pack.rb 2012-11-26 14:06:02 UTC (rev 3203)
+++ branches/snapshots/app/models/pack.rb 2012-11-26 14:07:48 UTC (rev 3204)
@@ -687,6 +687,13 @@
save
end
+ def describe_version(version_number)
+ return "" if versions.count < 2
+ return "(earliest)" if version_number == versions.first.version
+ return "(latest)" if version_number == versions.last.version
+ return ""
+ end
+
protected
# produces html string containing the required messaged, enclosed within left-padded P tag, belonging to 'none_text' class