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]} %>