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) }
|
2021-04-29 21:17:54 +05:30
|
|
|
%button.gl-button.btn.btn-link.dropdown-user{ type: :button }
|
2017-09-10 17:25:29 +05:30
|
|
|
.avatar-container.s40
|
2018-03-17 18:26:18 +05:30
|
|
|
= user_avatar_without_link(user: user, lazy: avatar[:lazy], url: avatar[:url], size: 40, has_tooltip: false)
|
2017-09-10 17:25:29 +05:30
|
|
|
.dropdown-user-details
|
|
|
|
%span
|
|
|
|
= user.name
|
|
|
|
%span.dropdown-light-content
|
|
|
|
= user.to_reference
|