My Account: Cleaned-up/reorganised user header dropdown

This commit is contained in:
Dan Brown 2023-10-18 17:57:14 +01:00
parent 03c44b3992
commit e4ea73ee25
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9

View file

@ -18,11 +18,16 @@
</a>
</li>
<li>
<a href="{{ $user->getEditUrl() }}" class="icon-item">
@icon('edit')
<div>{{ trans('common.edit_profile') }}</div>
<a href="{{ url('/my-account') }}" class="icon-item">
@icon('user-preferences')
<div>{{ trans('preferences.my_account') }}</div>
</a>
</li>
<li><hr></li>
<li>
@include('common.dark-mode-toggle', ['classes' => 'icon-item'])
</li>
<li><hr></li>
<li>
<form action="{{ url(config('auth.method') === 'saml2' ? '/saml2/logout' : '/logout') }}"
method="post">
@ -33,15 +38,5 @@
</button>
</form>
</li>
<li><hr></li>
<li>
<a href="{{ url('/my-account') }}" class="icon-item">
@icon('user-preferences')
<div>{{ trans('preferences.my_account') }}</div>
</a>
</li>
<li>
@include('common.dark-mode-toggle', ['classes' => 'icon-item'])
</li>
</ul>
</div>