From 44fe907d5913027ce9eef7c2a03e3d19cac4e4e6 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Tue, 3 Nov 2020 00:17:02 +0100 Subject: [PATCH] Partial template for small thumbnails added --- app/views/packages/_small_image.slim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/views/packages/_small_image.slim diff --git a/app/views/packages/_small_image.slim b/app/views/packages/_small_image.slim new file mode 100644 index 0000000..53a9f0e --- /dev/null +++ b/app/views/packages/_small_image.slim @@ -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})