diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-30 18:55:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-30 18:55:11 +0000 |
commit | 62d45de8349fd798369fae7beab3de93d0dbbb73 (patch) | |
tree | 33c7a5c03dde7c072d5721df3b3257a4ec107c61 /app/views | |
parent | 7792d735c4d897d06f9a6e6d043c8f5a978e9ebe (diff) | |
download | redmine-62d45de8349fd798369fae7beab3de93d0dbbb73.tar.gz redmine-62d45de8349fd798369fae7beab3de93d0dbbb73.zip |
Removes test code introduced in r15994.
git-svn-id: http://svn.redmine.org/redmine/trunk@16030 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/wiki/show.html.erb | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb index 4eaa3d62f..1cbfcbc65 100644 --- a/app/views/wiki/show.html.erb +++ b/app/views/wiki/show.html.erb @@ -1,13 +1,11 @@ <div class="contextual"> - <% if @editable && @content.current_version? %> - <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> - <% end %> - <%= watcher_link(@page, User.current) %> -<span class="drdn"> - <span class="drdn-trigger">Hello</span> - <div class="drdn-content drdn-items"> +<% if User.current.allowed_to?(:edit_wiki_pages, @project) %> +<%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %> +<% end %> <% if @editable %> <% if @content.current_version? %> + <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> + <%= watcher_link(@page, User.current) %> <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :id => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %> <%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :id => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %> <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') %> @@ -17,11 +15,6 @@ <% end %> <% end %> <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> -<% if User.current.allowed_to?(:edit_wiki_pages, @project) %> -<%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %> -<% end %> - </div> -</span> </div> <%= wiki_page_breadcrumb(@page) %> |