]> source.dussan.org Git - redmine.git/commitdiff
Added gravatar image to the user's public account page
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 30 Oct 2008 02:58:34 +0000 (02:58 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 30 Oct 2008 02:58:34 +0000 (02:58 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1967 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/account/show.rhtml

index 1160a5d8c1493783ebc86d4c2c5069e08124f6ef..64fb8bf5f85277ca04561c9d3cb0045d5b771b82 100644 (file)
@@ -2,7 +2,7 @@
 <%= 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>
+<h2><%= gravatar @user.mail unless @user.mail.empty? %> <%=h @user.name %></h2>
 
 <p>
 <%= mail_to(h(@user.mail)) unless @user.pref.hide_mail %>