Do not show version in image caption
This commit is contained in:
parent
f2552736dc
commit
2d73e7a1b4
1 changed files with 3 additions and 3 deletions
|
|
@ -46,10 +46,10 @@ class Screenshot < ActiveRecord::Base
|
||||||
# Takes the description of a screenshot if available.
|
# Takes the description of a screenshot if available.
|
||||||
# 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.present?
|
||||||
"#{self.description} – Version #{self.version}"
|
"#{self.description}"
|
||||||
else
|
else
|
||||||
"#{self.package.description} – Version #{self.version}"
|
"#{self.package.description}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue