added promote link to user page

This commit is contained in:
albert
2011-12-20 11:57:33 -05:00
parent bae1f39dcf
commit 30fb0b660c
3 changed files with 4 additions and 3 deletions

View File

@@ -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 %>