User login updates

This commit is contained in:
Deon George 2019-04-11 22:30:03 +10:00
parent 6d84613158
commit c406c35ff7
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254
3 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@
<li class="breadcrumb-item"><a href="{{url($url)}}">{{ $item }}</a></li> <li class="breadcrumb-item"><a href="{{url($url)}}">{{ $item }}</a></li>
@endforeach @endforeach
@endisset @endisset
<li class="breadcrumb-item active">@yield('contentheader_title', 'Content Title')</li> <li class="breadcrumb-item active">@yield('page_title','Page Title')</li>
</ol> </ol>
</div><!-- /.col --> </div><!-- /.col -->
</div><!-- /.row --> </div><!-- /.row -->

View File

@ -46,6 +46,8 @@
</a> </a>
</div> </div>
</li> </li>
@else
<a href="{{ url('login') }}" class="text-muted pr-2"><i class="fa fa-lock"></i></a>
@endif @endif
<!-- Control Side Bar --> <!-- Control Side Bar -->

View File

@ -11,10 +11,10 @@
<!-- Sidebar user panel (optional) --> <!-- Sidebar user panel (optional) -->
<div class="user-panel mt-3 pb-3 mb-3 d-flex"> <div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image"> <div class="image">
<img src="{{ Gravatar::get($user->exists ? $user->email : 'nobody@example.com') }}" class="img-circle elevation-2" alt="User"> <img src="{{ Gravatar::get(($user->exists AND $user->email) ? $user->email : 'nobody@example.com') }}" class="img-circle elevation-2" alt="User">
</div> </div>
<div class="info"> <div class="info">
<a class="d-block">{{ $user->name ?: 'Nobody' }}</a> <a href="{{ url('login') }}" class="d-block">{{ $user->name ?: 'Nobody' }}</a>
</div> </div>
</div> </div>