Partial template for small thumbnails added
This commit is contained in:
parent
4f2c89d928
commit
44fe907d59
1 changed files with 15 additions and 0 deletions
15
app/views/packages/_small_image.slim
Normal file
15
app/views/packages/_small_image.slim
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/ Show image in medium size with zoom option and caption below
|
||||
a href =url_for(screenshot.simage_url(:large)) rel='fancybox-thumb' title=screenshot.caption data-fancybox='gallery' data-caption=screenshot_caption(screenshot)
|
||||
.image-with-zoom-icon
|
||||
= small_img(screenshot)
|
||||
|
||||
.magnifying-glass-icon
|
||||
i.fa.fa-search
|
||||
|
||||
- if screenshot.description
|
||||
.imgcaption
|
||||
= screenshot.description
|
||||
|
||||
/ Display management buttons for admins only
|
||||
- if user_signed_in? and current_user.is_admin?
|
||||
= render(partial: 'admin_dropdown', locals: {screenshot: screenshot})
|
||||
Loading…
Add table
Add a link
Reference in a new issue