summaryrefslogtreecommitdiffstats
path: root/app/views/wiki/show.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-03-12 18:17:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-03-12 18:17:35 +0000
commiteb224378db4605ef4bb1c68f63c0c9ef41dc3e72 (patch)
tree0f6d752ebe65fc084b931f95b37c5ad13b538b26 /app/views/wiki/show.rhtml
parentb622e0f8ce685e0c061f3391513dde875bcd54ed (diff)
downloadredmine-eb224378db4605ef4bb1c68f63c0c9ef41dc3e72.tar.gz
redmine-eb224378db4605ef4bb1c68f63c0c9ef41dc3e72.zip
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
Diffstat (limited to 'app/views/wiki/show.rhtml')
-rw-r--r--app/views/wiki/show.rhtml2
1 files changed, 2 insertions, 0 deletions
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') %>
+<div id="wiki_add_attachment">
<p><%= 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' %></p>
<% 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 %>
+</div>
<% end %>
<% other_formats_links do |f| %>