Project

General

Profile

Defect #44127 » 0001-Replace-group-avatar-icon-with-SVG.patch

Mizuki ISHIKAWA, 2026-05-29 07:06

View differences:

app/assets/images/group.svg
1
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#343a40" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-users-group">
2
	<path stroke="none" d="M0 0h24v24H0z" fill="none" />
3
	<path d="M10 13a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
4
	<path d="M8 21v-1a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v1" />
5
	<path d="M15 5a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
6
	<path d="M17 10h2a2 2 0 0 1 2 2v1" />
7
	<path d="M5 5a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
8
	<path d="M3 13v-1a2 2 0 0 1 2 -2h2" />
9
</svg>
app/helpers/avatars_helper.rb
68 68

  
69 69
  def group_avatar(options={})
70 70
    options[:class] = ['group-avatar', options[:class]].compact.join(' ')
71
    image_tag 'group.png', GravatarHelper::DEFAULT_OPTIONS.except(:default, :rating, :ssl).merge(options)
71
    image_tag 'group.svg', GravatarHelper::DEFAULT_OPTIONS.except(:default, :rating, :ssl).merge(options)
72 72
  end
73 73

  
74 74
  private
(3-3/3)