From eb224378db4605ef4bb1c68f63c0c9ef41dc3e72 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 12 Mar 2009 18:17:35 +0000 Subject: [PATCH] Hide 'New file' link and form for printing (#2949). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2574 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/wiki/show.rhtml | 2 ++ public/stylesheets/application.css | 1 + 2 files changed, 3 insertions(+) diff --git a/app/views/wiki/show.rhtml b/app/views/wiki/show.rhtml index 7abfd8a28..033c59160 100644 --- a/app/views/wiki/show.rhtml +++ b/app/views/wiki/show.rhtml @@ -31,6 +31,7 @@ <%= link_to_attachments @page %> <% if @editable && authorize_for('wiki', 'add_attachment') %> +

<%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;", :id => 'attach_files_link' %>

<% form_tag({ :controller => 'wiki', :action => 'add_attachment', :page => @page.title }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %> @@ -40,6 +41,7 @@ <%= submit_tag l(:button_add) %> <%= link_to l(:button_cancel), {}, :onclick => "Element.hide('add_attachment_form'); Element.show('attach_files_link'); return false;" %> <% end %> +
<% end %> <% other_formats_links do |f| %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 88cefadea..eed01bea5 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -715,4 +715,5 @@ h2 img { vertical-align:middle; } #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; } } -- 2.39.5