summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-03-31 09:30:47 +0000
committerGo MAEDA <maeda@farend.jp>2020-03-31 09:30:47 +0000
commite04fb3e78b318e5919671980dccfe53600ea151c (patch)
treea123acb346653fd6563ac13f9fa8b3dc5450bba6 /app/helpers
parentbb7c49e05ad50fc3c9ed9b21c99bbef3cb70106c (diff)
downloadredmine-e04fb3e78b318e5919671980dccfe53600ea151c.tar.gz
redmine-e04fb3e78b318e5919671980dccfe53600ea151c.zip
Display avatar on add watchar dialog (#32976).
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@19626 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 2fed8ee91..f94732fc6 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -579,7 +579,10 @@ module ApplicationHelper
def principals_check_box_tags(name, principals)
s = +''
principals.each do |principal|
- s << "<label>#{ check_box_tag name, principal.id, false, :id => nil } <span class='name icon icon-#{principal.class.name.downcase}'></span>#{h principal}</label>\n"
+ s << content_tag('label',
+ check_box_tag(name, principal.id, false, :id => nil) +
+ (avatar(principal, :size => 16).presence || content_tag('span', nil, :class => "name icon icon-#{principal.class.name.downcase}")) +
+ principal)
end
s.html_safe
end