From 00e98fef22bdc77cf41a1197ddc3e360e4276340 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sun, 9 Dec 2018 13:22:43 +0100 Subject: [PATCH] =?UTF-8?q?Muestra=20el=20desplegable=20de=20ficheros=20en?= =?UTF-8?q?=20las=20p=C3=A1ginas=20del=20wiki=20solo=20si=20son=20editable?= =?UTF-8?q?s=20o=20tienen=20adjuntos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/wiki/show.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb index 1cbfcbc..723d642 100644 --- a/app/views/wiki/show.html.erb +++ b/app/views/wiki/show.html.erb @@ -46,8 +46,9 @@ <%= render(:partial => "wiki/content", :locals => {:content => @content}) %> +<% if @page.attachments.length > 0 || (@editable && authorize_for('wiki', 'add_attachment')) %> +<% end %> <% other_formats_links do |f| %> <%= f.link_to 'PDF', :url => {:id => @page.title, :version => params[:version]} %>