diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2008-10-31 00:41:28 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2008-10-31 00:41:28 +0000 |
commit | ba20a678737c0ca84382826f1a7bd22cc40fe4eb (patch) | |
tree | db8da23d0dde61d23b26173e806dc3d844b636d1 /app/views/account | |
parent | 048fa5bd7773c38ad5fada2b52167be1fd33e4e8 (diff) | |
download | redmine-ba20a678737c0ca84382826f1a7bd22cc40fe4eb.tar.gz redmine-ba20a678737c0ca84382826f1a7bd22cc40fe4eb.zip |
Added an option to turn user Gravatars on or off
* Option can be found in Administration > General, called
"Use Gravatar user icons"
* Defaulting Gravatars to off
* Added a helper gravatar_for_mail to check the setting before rendering
the Gravatar.
#1776
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1972 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/account')
-rw-r--r-- | app/views/account/show.rhtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/account/show.rhtml b/app/views/account/show.rhtml index 64fb8bf5f..305629a9c 100644 --- a/app/views/account/show.rhtml +++ b/app/views/account/show.rhtml @@ -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><%= gravatar @user.mail unless @user.mail.empty? %> <%=h @user.name %></h2> +<h2><%= gravatar_for_mail @user.mail unless @user.mail.empty? %> <%=h @user.name %></h2> <p> <%= mail_to(h(@user.mail)) unless @user.pref.hide_mail %> @@ -29,4 +29,4 @@ <h3><%=l(:label_activity)%></h3> <p> <%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %> -</p>
\ No newline at end of file +</p> |