Add avatar to nav dropdown

This commit is contained in:
Daniel Supernault 2018-06-09 17:35:21 -06:00
parent b677d0ced6
commit a39f9600b9

View file

@ -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">
&commat;{{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>