Adding DIV to make sure that the image caption is always below the image

This commit is contained in:
Christoph Haas 2016-06-27 18:06:29 +02:00
parent c69a4270e9
commit 0c439359b9

View file

@ -13,13 +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)
- if screenshot.description div
.imgcaption =screenshot.description - if screenshot.description
- if screenshot.version.present? .imgcaption =screenshot.description
em.imgcaption - if screenshot.version.present?
'(from version #{screenshot.version}) em.imgcaption
- if user_signed_in? '(from version #{screenshot.version})
em.imgcaption =screenshot.adminstatus - if user_signed_in?
em.imgcaption Admin status: #{screenshot.adminstatus}
// Is the user an admin? // Is the user an admin?
- if user_signed_in? - if user_signed_in?