summaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-05-19 22:27:41 +0000
committerGo MAEDA <maeda@farend.jp>2019-05-19 22:27:41 +0000
commitf992df684fe4db936ee56c1e7d334eebfae40329 (patch)
tree901f0b13ad2abe01c93116280a0ce3d435ec515c /app/controllers/application_controller.rb
parent6f8bfab179ce785a08d13d137f849c6bfece0df9 (diff)
downloadredmine-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 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 54f1e63d7..082bab939 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -27,7 +27,10 @@ class ApplicationController < ActionController::Base
include Redmine::Pagination
include Redmine::Hook::Helper
include RoutesHelper
+ include AvatarsHelper
+
helper :routes
+ helper :avatars
class_attribute :accept_api_auth_actions
class_attribute :accept_rss_auth_actions