summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-08-11 20:55:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-08-11 20:55:17 +0000
commit988f8d65fa3d7e7cb6bd17900ba21f05dfc021df (patch)
treedd4b25c5d07d9724a47dfb307f7e4fa96b59bceb
parenta3e729a263f69cb86b2066a1958d5bcb0ab5b918 (diff)
downloadredmine-988f8d65fa3d7e7cb6bd17900ba21f05dfc021df.tar.gz
redmine-988f8d65fa3d7e7cb6bd17900ba21f05dfc021df.zip
Adds 'Edit' link on account/show for admin users.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1733 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/account/show.rhtml4
1 files changed, 4 insertions, 0 deletions
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 @@
+<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>