mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Add avatar to nav dropdown
This commit is contained in:
parent
b677d0ced6
commit
a39f9600b9
1 changed files with 3 additions and 5 deletions
|
@ -29,10 +29,10 @@
|
|||
</a>
|
||||
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item font-weight-ultralight" href="{{Auth::user()->url()}}">
|
||||
<span class="far fa-user pr-1"></span>
|
||||
<a class="dropdown-item font-weight-ultralight text-truncate" href="{{Auth::user()->url()}}">
|
||||
<img class="img-thumbnail rounded-circle pr-1" src="{{Auth::user()->profile->avatarUrl()}}" width="32px">
|
||||
@{{Auth::user()->username}}
|
||||
<p class="small mb-0">{{__('navmenu.viewMyProfile')}}</p>
|
||||
<p class="small mb-0 text-muted">{{__('navmenu.viewMyProfile')}}</p>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item font-weight-bold" href="{{route('timeline.personal')}}">
|
||||
|
@ -48,12 +48,10 @@
|
|||
<span class="fas fa-user-plus pr-1"></span>
|
||||
{{__('navmenu.remoteFollow')}}
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item font-weight-bold" href="{{route('settings')}}">
|
||||
<span class="fas fa-cog pr-1"></span>
|
||||
{{__('navmenu.settings')}}
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
@if(Auth::user()->is_admin == true)
|
||||
<a class="dropdown-item font-weight-bold" href="{{ route('admin.home') }}">
|
||||
<span class="fas fa-cogs pr-1"></span>
|
||||
|
|
Loading…
Reference in a new issue