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