added promote link to user page
This commit is contained in:
@@ -14,9 +14,6 @@
|
||||
<li><%= link_to("Bookmarklet", bookmarklet_path) %></li>
|
||||
<li><%= link_to("API Documentation", wiki_pages_path(:title => "help:api")) %></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><h1>Reports</h1></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section>
|
||||
<ul>
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
<% if !CurrentUser.is_privileged? %>
|
||||
<li><%= link_to "Upgrade", upgrade_information_users_path %></li>
|
||||
<% end %>
|
||||
<% if CurrentUser.is_admin? %>
|
||||
<li><%= link_to "Promote", edit_admin_user_path(@user) %></li>
|
||||
<% end %>
|
||||
<li>|</li>
|
||||
<li><%= link_to "Sign out", session_path, :method => :delete %></li>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user