@@ -1,13 +1,11 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | <% if @editable && @content.current_version? %> | |
|
3 | <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> | |
|
4 |
|
|
|
5 | <%= watcher_link(@page, User.current) %> | |
|
6 | <span class="drdn"> | |
|
7 | <span class="drdn-trigger">Hello</span> | |
|
8 | <div class="drdn-content drdn-items"> | |
|
2 | <% if User.current.allowed_to?(:edit_wiki_pages, @project) %> | |
|
3 | <%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %> | |
|
4 | <% end %> | |
|
9 | 5 | <% if @editable %> |
|
10 | 6 | <% if @content.current_version? %> |
|
7 | <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> | |
|
8 | <%= watcher_link(@page, User.current) %> | |
|
11 | 9 | <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :id => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %> |
|
12 | 10 | <%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :id => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %> |
|
13 | 11 | <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') %> |
@@ -17,11 +15,6 | |||
|
17 | 15 | <% end %> |
|
18 | 16 | <% end %> |
|
19 | 17 | <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> |
|
20 | <% if User.current.allowed_to?(:edit_wiki_pages, @project) %> | |
|
21 | <%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %> | |
|
22 | <% end %> | |
|
23 | </div> | |
|
24 | </span> | |
|
25 | 18 | </div> |
|
26 | 19 | |
|
27 | 20 | <%= wiki_page_breadcrumb(@page) %> |
General Comments 0
You need to be logged in to leave comments.
Login now