]> source.dussan.org Git - redmine.git/commitdiff
Adds 'Edit' link on account/show for admin users.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 11 Aug 2008 20:55:17 +0000 (20:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 11 Aug 2008 20:55:17 +0000 (20:55 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1733 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/account/show.rhtml

index 2d0731b42c9853823417af027cb5ad5920d50aa4..1160a5d8c1493783ebc86d4c2c5069e08124f6ef 100644 (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>