2017-06-02 03:42:18 -04:00
|
|
|
- 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 }
|
2017-08-07 17:44:42 -04:00
|
|
|
.avatar-container.s40
|
2017-09-22 11:52:19 -04:00
|
|
|
= user_avatar_without_link(user: user, lazy: avatar[:lazy], url: avatar[:url], size: 40, has_tooltip: false)
|
2017-06-02 03:42:18 -04:00
|
|
|
.dropdown-user-details
|
|
|
|
%span
|
|
|
|
= user.name
|
|
|
|
%span.dropdown-light-content
|
|
|
|
= user.to_reference
|