1 <div class="dropdown-container" component="dropdown" option:dropdown:bubble-escapes="true">
2 <span class="user-name py-s hide-under-l" refs="dropdown@toggle"
3 aria-haspopup="true" aria-expanded="false" aria-label="{{ trans('common.profile_menu') }}" tabindex="0">
4 <img class="avatar" src="{{$user->getAvatar(30)}}" alt="{{ $user->name }}">
5 <span class="name">{{ $user->getShortName(9) }}</span> @icon('caret-down')
7 <ul refs="dropdown@menu" class="dropdown-menu" role="menu">
9 <a href="{{ url('/favourites') }}" data-shortcut="favourites_view" class="icon-item">
11 <div>{{ trans('entities.my_favourites') }}</div>
15 <a href="{{ $user->getProfileUrl() }}" data-shortcut="profile_view" class="icon-item">
17 <div>{{ trans('common.view_profile') }}</div>
21 <a href="{{ $user->getEditUrl() }}" class="icon-item">
23 <div>{{ trans('common.edit_profile') }}</div>
27 <form action="{{ url(config('auth.method') === 'saml2' ? '/saml2/logout' : '/logout') }}"
30 <button class="icon-item" data-shortcut="logout">
32 <div>{{ trans('auth.logout') }}</div>
38 <a href="{{ url('/preferences') }}" class="icon-item">
39 @icon('user-preferences')
40 <div>{{ trans('preferences.preferences') }}</div>
44 @include('common.dark-mode-toggle', ['classes' => 'icon-item'])