Adds 'Edit' link on account/show for admin users.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1733 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-08-11 20:55:17 +00:00
parent a3e729a263
commit 988f8d65fa
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,7 @@
<div class="contextual">
<%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %>
</div>
<h2><%=h @user.name %></h2>
<p>