From 988f8d65fa3d7e7cb6bd17900ba21f05dfc021df Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 11 Aug 2008 20:55:17 +0000 Subject: [PATCH] Adds 'Edit' link on account/show for admin users. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1733 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/account/show.rhtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/account/show.rhtml b/app/views/account/show.rhtml index 2d0731b42..1160a5d8c 100644 --- a/app/views/account/show.rhtml +++ b/app/views/account/show.rhtml @@ -1,3 +1,7 @@ +
+<%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %> +
+

<%=h @user.name %>