29791-hidden-wiki-attachments.patch

Yuichi HARADA, 2018-10-31 06:24

Download (1.54 KB)

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 wiki-attachments">
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',
public/stylesheets/application.css
1487 1487
  #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
1488 1488
  #main { background: #fff; }
1489 1489
  #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
1490
  #wiki_add_attachment { display:none; }
1490
  #wiki_add_attachment, .wiki-attachments { display:none; }
1491 1491
  .hide-when-print, .pagination ul.pages, .pagination .per-page { display: none !important; }
1492 1492
  .autoscroll {overflow-x: visible;}
1493 1493
  table.list {margin-top:0.5em;}