added promote link to user page
This commit is contained in:
@@ -9,6 +9,7 @@ module Admin
|
||||
def update
|
||||
@user = User.find(params[:id])
|
||||
@user.level = params[:user][:level]
|
||||
@user.inviter_id = CurrentUser.id unless @user.inviter_id.present?
|
||||
@user.save
|
||||
redirect_to edit_admin_user_path(@user, :notice => "User updated"), :notice => "User updated"
|
||||
end
|
||||
|
||||
@@ -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