2019-03-02 22:35:43 +05:30
|
|
|
.flex-list
|
|
|
|
.flex-row
|
|
|
|
= image_tag avatar_icon_for_user(user), class: 'avatar s32 d-none d-md-flex', alt: _('Avatar for %{name}') % { name: sanitize_name(user.name) }
|
|
|
|
.row-main-content
|
|
|
|
.row-title.str-truncated-100
|
2020-06-23 00:09:42 +05:30
|
|
|
= image_tag avatar_icon_for_user(user), class: 'avatar s16 d-xs-flex d-md-none mr-1 gl-mt-2', alt: _('Avatar for %{name}') % { name: sanitize_name(user.name) }
|
2019-12-21 20:55:43 +05:30
|
|
|
= link_to user.name, admin_user_path(user), class: 'text-plain js-user-link', data: { user_id: user.id, qa_selector: 'username_link' }
|
2019-03-02 22:35:43 +05:30
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
= render 'admin/users/user_listing_note', user: user
|
2019-03-02 22:35:43 +05:30
|
|
|
|
|
|
|
- user_badges_in_admin_section(user).each do |badge|
|
2021-03-11 19:13:27 +05:30
|
|
|
- css_badge = "badge gl-badge sm badge-pill badge-#{badge[:variant]}" if badge[:variant].present?
|
|
|
|
%span.px-1.py-1
|
|
|
|
%span{ class: css_badge }
|
|
|
|
= badge[:text]
|
2019-03-02 22:35:43 +05:30
|
|
|
|
|
|
|
.row-second-line.str-truncated-100
|
|
|
|
= mail_to user.email, user.email, class: 'text-secondary'
|
2021-01-03 14:25:43 +05:30
|
|
|
- unless Feature.disabled?(:security_auto_fix) || !user.internal? || user.website_url.blank?
|
|
|
|
= link_to "(#{_('more information')})", user.website_url
|