]> source.dussan.org Git - redmine.git/commit
Small refactorization of avatar methods (#31391).
authorGo MAEDA <maeda@farend.jp>
Sun, 19 May 2019 22:27:41 +0000 (22:27 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 19 May 2019 22:27:41 +0000 (22:27 +0000)
commitf992df684fe4db936ee56c1e7d334eebfae40329
tree901f0b13ad2abe01c93116280a0ce3d435ec515c
parent6f8bfab179ce785a08d13d137f849c6bfece0df9
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
17 files changed:
app/controllers/application_controller.rb
app/helpers/application_helper.rb
app/helpers/avatars_helper.rb [new file with mode: 0644]
app/views/activities/_activities.html.erb
app/views/issues/_history.html.erb
app/views/issues/show.html.erb
app/views/messages/edit.html.erb
app/views/messages/show.html.erb
app/views/news/index.html.erb
app/views/news/show.html.erb
app/views/repositories/_changeset.html.erb
lib/plugins/gravatar/lib/gravatar.rb
lib/redmine/helpers/gantt.rb
public/stylesheets/application.css
test/helpers/application_helper_test.rb
test/helpers/avatars_helper_test.rb [new file with mode: 0644]
test/unit/lib/redmine/helpers/gantt_test.rb