Show version along with description as screenshot caption

This commit is contained in:
Christoph Haas 2016-06-21 16:53:42 +02:00
parent 4a99d84919
commit c2fe896cbc

View file

@ -47,9 +47,9 @@ class Screenshot < ActiveRecord::Base
# Otherwise it falls back to the general description of its package. # Otherwise it falls back to the general description of its package.
def caption def caption
if self.description != '' if self.description != ''
self.description "#{self.description} Version #{self.version}"
else else
self.package.description "#{self.package.description} Version #{self.version}"
end end
end end