mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +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>
|
</a>
|
||||||
|
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
||||||
<a class="dropdown-item font-weight-ultralight" href="{{Auth::user()->url()}}">
|
<a class="dropdown-item font-weight-ultralight text-truncate" href="{{Auth::user()->url()}}">
|
||||||
<span class="far fa-user pr-1"></span>
|
<img class="img-thumbnail rounded-circle pr-1" src="{{Auth::user()->profile->avatarUrl()}}" width="32px">
|
||||||
@{{Auth::user()->username}}
|
@{{Auth::user()->username}}
|
||||||
<p class="small mb-0">{{__('navmenu.viewMyProfile')}}</p>
|
<p class="small mb-0 text-muted">{{__('navmenu.viewMyProfile')}}</p>
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('timeline.personal')}}">
|
<a class="dropdown-item font-weight-bold" href="{{route('timeline.personal')}}">
|
||||||
|
@ -48,12 +48,10 @@
|
||||||
<span class="fas fa-user-plus pr-1"></span>
|
<span class="fas fa-user-plus pr-1"></span>
|
||||||
{{__('navmenu.remoteFollow')}}
|
{{__('navmenu.remoteFollow')}}
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a class="dropdown-item font-weight-bold" href="{{route('settings')}}">
|
<a class="dropdown-item font-weight-bold" href="{{route('settings')}}">
|
||||||
<span class="fas fa-cog pr-1"></span>
|
<span class="fas fa-cog pr-1"></span>
|
||||||
{{__('navmenu.settings')}}
|
{{__('navmenu.settings')}}
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
@if(Auth::user()->is_admin == true)
|
@if(Auth::user()->is_admin == true)
|
||||||
<a class="dropdown-item font-weight-bold" href="{{ route('admin.home') }}">
|
<a class="dropdown-item font-weight-bold" href="{{ route('admin.home') }}">
|
||||||
<span class="fas fa-cogs pr-1"></span>
|
<span class="fas fa-cogs pr-1"></span>
|
||||||
|
|
Loading…
Reference in a new issue