mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
d886c6a32e
Also prevent pointer error on custom home page
17 lines
790 B
PHP
17 lines
790 B
PHP
<div class="dropdown-container" dropdown>
|
|
<span class="user-name" dropdown-toggle>
|
|
<img class="avatar" src="{{$currentUser->getAvatar(30)}}" alt="{{ $currentUser->name }}">
|
|
<span class="name">{{ $currentUser->getShortName(9) }}</span> @icon('caret-down')
|
|
</span>
|
|
<ul>
|
|
<li>
|
|
<a href="{{ baseUrl("/user/{$currentUser->id}") }}" class="text-primary">@icon('user') {{ trans('common.view_profile') }}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ baseUrl("/settings/users/{$currentUser->id}") }}" class="text-primary">@icon('edit') {{ trans('common.edit_profile') }}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ baseUrl('/logout') }}" class="text-neg">@icon('logout') {{ trans('auth.logout') }}</a>
|
|
</li>
|
|
</ul>
|
|
</div> |