diff options
Diffstat (limited to 'app/views/attachments/_links.html.erb')
-rw-r--r-- | app/views/attachments/_links.html.erb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb index 779702fb7..f77cfb1eb 100644 --- a/app/views/attachments/_links.html.erb +++ b/app/views/attachments/_links.html.erb @@ -20,4 +20,14 @@ <% end %> </p> <% end %> +<% if defined?(thumbnails) && thumbnails %> + <% images = attachments.select(&:thumbnailable?) %> + <% if images.any? %> + <div class="thumbnails"> + <% images.each do |attachment| %> + <div><%= thumbnail_tag(attachment) %></div> + <% end %> + </div> + <% end %> +<% end %> </div> |