##// END OF EJS Templates
Hide 'New file' link and form for printing (#2949)....
Jean-Philippe Lang -
r2506:eb224378db46
parent child
Show More
@@ -31,6 +31,7
31 <%= link_to_attachments @page %>
31 <%= link_to_attachments @page %>
32
32
33 <% if @editable && authorize_for('wiki', 'add_attachment') %>
33 <% if @editable && authorize_for('wiki', 'add_attachment') %>
34 <div id="wiki_add_attachment">
34 <p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;",
35 <p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;",
35 :id => 'attach_files_link' %></p>
36 :id => 'attach_files_link' %></p>
36 <% form_tag({ :controller => 'wiki', :action => 'add_attachment', :page => @page.title }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
37 <% form_tag({ :controller => 'wiki', :action => 'add_attachment', :page => @page.title }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
@@ -40,6 +41,7
40 <%= submit_tag l(:button_add) %>
41 <%= submit_tag l(:button_add) %>
41 <%= link_to l(:button_cancel), {}, :onclick => "Element.hide('add_attachment_form'); Element.show('attach_files_link'); return false;" %>
42 <%= link_to l(:button_cancel), {}, :onclick => "Element.hide('add_attachment_form'); Element.show('attach_files_link'); return false;" %>
42 <% end %>
43 <% end %>
44 </div>
43 <% end %>
45 <% end %>
44
46
45 <% other_formats_links do |f| %>
47 <% other_formats_links do |f| %>
@@ -715,4 +715,5 h2 img { vertical-align:middle; }
715 #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
715 #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
716 #main { background: #fff; }
716 #main { background: #fff; }
717 #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
717 #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
718 #wiki_add_attachment { display:none; }
718 }
719 }
General Comments 0
You need to be logged in to leave comments. Login now