From b5d1ead978f6448ecdcc42d3be53a51dbd2a81d8 Mon Sep 17 00:00:00 2001 From: kayrus Date: Mon, 30 May 2016 11:10:04 +0200 Subject: Added possibility to view attachments' thumbnails on wiki page --- app/views/wiki/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb index a9db7a0..825c389 100644 --- a/app/views/wiki/show.html.erb +++ b/app/views/wiki/show.html.erb @@ -43,7 +43,7 @@ <%= render(:partial => "wiki/content", :locals => {:content => @content}) %> -<%= link_to_attachments @page %> +<%= link_to_attachments @page, :thumbnails => true %> <% if @editable && authorize_for('wiki', 'add_attachment') %>
-- 1.9.1 From b961494463245b7a78208b5b55f50f9038ac9a1c Mon Sep 17 00:00:00 2001 From: kayrus Date: Fri, 20 Nov 2015 23:26:57 +0100 Subject: Added possibility to view attachments' thumbnails on documents page --- app/views/documents/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/documents/show.html.erb b/app/views/documents/show.html.erb index 8d2e495..799803c 100644 --- a/app/views/documents/show.html.erb +++ b/app/views/documents/show.html.erb @@ -25,7 +25,7 @@

<%= l(:label_attachment_plural) %>

-<%= link_to_attachments @document %> +<%= link_to_attachments @document, :thumbnails => true %> <% if authorize_for('documents', 'add_attachment') %>

<%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;", -- 1.9.1