Project

General

Profile

Feature #29791 » 29791-hidden-wiki-attachments-v2.patch

Yuichi HARADA, 2018-10-31 07:16

View differences:

app/views/wiki/show.html.erb
50 50

  
51 51
<%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
52 52

  
53
<fieldset class="collapsible collapsed">
53
<fieldset class="collapsible collapsed hide-when-print">
54 54
  <legend onclick="toggleFieldset(this);"><%= l(:label_attachment_plural) %> (<%= @page.attachments.length %>)</legend>
55 55
  <div style="display: none;">
56 56

  
57 57
  <%= link_to_attachments @page, :thumbnails => true %>
58
  
58

  
59 59
  <% if @editable && authorize_for('wiki', 'add_attachment') %>
60 60
  <div id="wiki_add_attachment">
61 61
    <%= form_tag({:controller => 'wiki', :action => 'add_attachment',
(2-2/2)