summaryrefslogtreecommitdiffstats
path: root/app/views/wiki
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-26 08:16:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-26 08:16:15 +0000
commit62823442d369705290807fa2a5191a1a67d6ee09 (patch)
treef50e09ed18bbb7fdef85f0fe21d8d18d0a8202b9 /app/views/wiki
parentbac3ac738a5cad495eb5862bad4e58cca02c8c6d (diff)
downloadredmine-62823442d369705290807fa2a5191a1a67d6ee09.tar.gz
redmine-62823442d369705290807fa2a5191a1a67d6ee09.zip
Replaces project jump select with custom dropdown (#23310).
git-svn-id: http://svn.redmine.org/redmine/trunk@15994 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r--app/views/wiki/show.html.erb17
1 files changed, 12 insertions, 5 deletions
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb
index 1cbfcbc65..4eaa3d62f 100644
--- a/app/views/wiki/show.html.erb
+++ b/app/views/wiki/show.html.erb
@@ -1,11 +1,13 @@
<div class="contextual">
-<% 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? %>
+ <% 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 @editable %>
+<% if @content.current_version? %>
<%= 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') %>
@@ -15,6 +17,11 @@
<% 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) %>