2023-09-16 08:18:35 -04:00
|
|
|
<div class="dropdown-container" component="dropdown" option:dropdown:bubble-escapes="true">
|
|
|
|
<span class="user-name py-s hide-under-l" refs="dropdown@toggle"
|
|
|
|
aria-haspopup="true" aria-expanded="false" aria-label="{{ trans('common.profile_menu') }}" tabindex="0">
|
|
|
|
<img class="avatar" src="{{$user->getAvatar(30)}}" alt="{{ $user->name }}">
|
|
|
|
<span class="name">{{ $user->getShortName(9) }}</span> @icon('caret-down')
|
|
|
|
</span>
|
|
|
|
<ul refs="dropdown@menu" class="dropdown-menu" role="menu">
|
|
|
|
<li>
|
|
|
|
<a href="{{ url('/favourites') }}" data-shortcut="favourites_view" class="icon-item">
|
|
|
|
@icon('star')
|
|
|
|
<div>{{ trans('entities.my_favourites') }}</div>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ $user->getProfileUrl() }}" data-shortcut="profile_view" class="icon-item">
|
|
|
|
@icon('user')
|
|
|
|
<div>{{ trans('common.view_profile') }}</div>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2023-10-18 12:57:14 -04:00
|
|
|
<a href="{{ url('/my-account') }}" class="icon-item">
|
|
|
|
@icon('user-preferences')
|
|
|
|
<div>{{ trans('preferences.my_account') }}</div>
|
2023-09-16 08:18:35 -04:00
|
|
|
</a>
|
|
|
|
</li>
|
2023-10-18 12:57:14 -04:00
|
|
|
<li><hr></li>
|
|
|
|
<li>
|
|
|
|
@include('common.dark-mode-toggle', ['classes' => 'icon-item'])
|
|
|
|
</li>
|
|
|
|
<li><hr></li>
|
2023-09-16 08:18:35 -04:00
|
|
|
<li>
|
2023-12-06 08:49:53 -05:00
|
|
|
@php
|
|
|
|
$logoutPath = match (config('auth.method')) {
|
|
|
|
'saml2' => '/saml2/logout',
|
|
|
|
'oidc' => '/oidc/logout',
|
|
|
|
default => '/logout',
|
|
|
|
}
|
|
|
|
@endphp
|
|
|
|
<form action="{{ url($logoutPath) }}" method="post">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
<button class="icon-item" data-shortcut="logout">
|
|
|
|
@icon('logout')
|
|
|
|
<div>{{ trans('auth.logout') }}</div>
|
|
|
|
</button>
|
|
|
|
</form>
|
2023-09-16 08:18:35 -04:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|