Skip to content
代码片段 群组 项目
未验证 提交 3ca47dbb 编辑于 作者: Mireya Andres's avatar Mireya Andres 提交者: GitLab
浏览文件

Merge branch '433518-Remove_group_icon' into 'master'

Remove final instances of `group_icon` #433518

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/139205



Merged-by: default avatarMireya Andres <mandres@gitlab.com>
Approved-by: default avatarDoug Stull <dstull@gitlab.com>
Approved-by: default avatarMireya Andres <mandres@gitlab.com>
Reviewed-by: default avatarDoug Stull <dstull@gitlab.com>
Reviewed-by: default avatarSean Jin <yonghyun.jin13@gmail.com>
Co-authored-by: default avatarDoug Stull <dstull@gitlab.com>
Co-authored-by: default avatarsean3687 <yonghyun.jin13@gmail.com>
No related branches found
No related tags found
无相关合并请求
...@@ -113,7 +113,7 @@ def avatar_without_link(resource, options = {}) ...@@ -113,7 +113,7 @@ def avatar_without_link(resource, options = {})
when Namespaces::UserNamespace when Namespaces::UserNamespace
user_avatar_without_link(options.merge(user: resource.first_owner)) user_avatar_without_link(options.merge(user: resource.first_owner))
when Group when Group
group_icon(resource, options.merge(class: 'avatar')) render Pajamas::AvatarComponent.new(resource, class: 'gl-avatar-circle gl-mr-3', size: 32)
end end
end end
......
...@@ -478,7 +478,20 @@ ...@@ -478,7 +478,20 @@
let(:resource) { build_stubbed(:group, name: 'foo') } let(:resource) { build_stubbed(:group, name: 'foo') }
it 'displays group avatar' do it 'displays group avatar' do
is_expected.to match(%r{<span class="avatar identicon bg\d+ s32">F</span>}) expected_pattern = %r{
<div\s+
alt="foo"\s+
class="gl-avatar\s+
gl-avatar-s32\s+
gl-avatar-circle\s+
gl-mr-3\s+
gl-avatar-identicon\s+
gl-avatar-identicon-bg\d+"\s*>
\s*F\s*
</div>
}x
is_expected.to match(expected_pattern)
end end
end end
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册