Project

General

Profile

Feature #32976 » disp-avatar-on-watcher-dialog.patch

Takenori TAKAKI, 2020-02-10 06:56

View differences:

app/helpers/application_helper.rb
579 579
  def principals_check_box_tags(name, principals)
580 580
    s = +''
581 581
    principals.each do |principal|
582
      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"
582
      s << content_tag('label',
583
                       check_box_tag(name, principal.id, false, :id => nil) +
584
                       (avatar(principal, :size => 16).presence || content_tag('span', nil, :class => "name icon icon-#{principal.class.name.downcase}")) +
585
                       principal)
583 586
    end
584 587
    s.html_safe
585 588
  end
public/stylesheets/application.css
414 414

  
415 415
#watchers select {width: 95%; display: block;}
416 416
#watchers img.gravatar {margin: 0 4px 2px 0;}
417
#users_for_watcher img.gravatar {padding-bottom: 2px; margin-right: 4px;}
417 418

  
418 419
span#watchers_inputs {overflow:auto; display:block;}
419 420
span.search_for_watchers {display:block;}
(2-2/3)