diff options
author | Go MAEDA <maeda@farend.jp> | 2019-05-19 22:27:41 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-05-19 22:27:41 +0000 |
commit | f992df684fe4db936ee56c1e7d334eebfae40329 (patch) | |
tree | 901f0b13ad2abe01c93116280a0ce3d435ec515c /lib/plugins | |
parent | 6f8bfab179ce785a08d13d137f849c6bfece0df9 (diff) | |
download | redmine-f992df684fe4db936ee56c1e7d334eebfae40329.tar.gz redmine-f992df684fe4db936ee56c1e7d334eebfae40329.zip |
Small refactorization of avatar methods (#31391).
* move existing methods from ApplicationHelper to a new helper file (AvatarsHelper)
* change default avatar size from 50 to 24 because most of the avatars are using the size 24
* class 'gravatar' is always added and all custom classes are appended
* added user name as default title for avatar images
* added two new methods: @assignee_avatar@ and @author_avatar@
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18175 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/gravatar/lib/gravatar.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/gravatar/lib/gravatar.rb b/lib/plugins/gravatar/lib/gravatar.rb index f368b9924..ea4a37cb5 100644 --- a/lib/plugins/gravatar/lib/gravatar.rb +++ b/lib/plugins/gravatar/lib/gravatar.rb @@ -18,7 +18,7 @@ module GravatarHelper :default => nil, # The default size in pixels for the gravatar image (they're square). - :size => 50, + :size => 24, # The maximum allowed MPAA rating for gravatars. This allows you to # exclude gravatars that may be out of character for your site. |