debian-mirror-gitlab/app/views/shared/issuable/_user_dropdown_item.html.haml

13 lines
536 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- user = local_assigns.fetch(:user)
- avatar = local_assigns.fetch(:avatar, { })
%li.filter-dropdown-item{ class: ('js-current-user' if user == current_user) }
%button.btn.btn-link.dropdown-user{ type: :button }
.avatar-container.s40
= user_avatar_without_link(user: user, lazy: avatar[:lazy], url: avatar[:url], size: 40, has_tooltip: false).gsub('/images/{{avatar_url}}','{{avatar_url}}').html_safe
.dropdown-user-details
%span
= user.name
%span.dropdown-light-content
= user.to_reference