Feature #29791 » 29791-hidden-wiki-attachments.patch
| app/views/wiki/show.html.erb | ||
|---|---|---|
|
<%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
|
||
|
<fieldset class="collapsible collapsed">
|
||
|
<fieldset class="collapsible collapsed wiki-attachments">
|
||
|
<legend onclick="toggleFieldset(this);"><%= l(:label_attachment_plural) %> (<%= @page.attachments.length %>)</legend>
|
||
|
<div style="display: none;">
|
||
|
<%= link_to_attachments @page, :thumbnails => true %>
|
||
|
|
||
|
<% if @editable && authorize_for('wiki', 'add_attachment') %>
|
||
|
<div id="wiki_add_attachment">
|
||
|
<%= form_tag({:controller => 'wiki', :action => 'add_attachment',
|
||
| public/stylesheets/application.css | ||
|---|---|---|
|
#top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
|
||
|
#main { background: #fff; }
|
||
|
#content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
|
||
|
#wiki_add_attachment { display:none; }
|
||
|
#wiki_add_attachment, .wiki-attachments { display:none; }
|
||
|
.hide-when-print, .pagination ul.pages, .pagination .per-page { display: none !important; }
|
||
|
.autoscroll {overflow-x: visible;}
|
||
|
table.list {margin-top:0.5em;}
|
||