Show version along with description as screenshot caption
This commit is contained in:
parent
4a99d84919
commit
c2fe896cbc
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue