Properly formatting image caption

This commit is contained in:
Christoph Haas 2016-07-13 22:44:34 +02:00
parent 4fb322a25d
commit 2b9b87c486

View file

@ -13,14 +13,14 @@
.text-center .text-center
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption) = image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
div - if screenshot.description
- if screenshot.description .imgcaption =screenshot.description
.imgcaption =screenshot.description - if screenshot.version.present?
- if screenshot.version.present? .imgcaption
em.imgcaption em from version #{screenshot.version}
'(from version #{screenshot.version}) - if user_signed_in?
- if user_signed_in? .imgcaption
em.imgcaption Admin status: #{screenshot.adminstatus} em Admin status: #{screenshot.adminstatus}
// Is the user an admin? // Is the user an admin?
- if user_signed_in? - if user_signed_in?