Skip to content

Commit

Permalink
fixed #1512
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Jul 4, 2020
1 parent 588c553 commit acacacb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 5 additions & 7 deletions resources/views/partials/admin/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,11 @@
@else
<img src="{{ asset('public/img/user.svg') }}" class="user-img" alt="{{ $user->name }}"/>
@endif
<div class="media-body ml-2 d-none d-lg-block">
<span class="mb-0 text-sm font-weight-bold">
@if (!empty($user->name))
{{ $user->name }}
@endif
</span>
</div>
@if (!empty($user->name))
<div class="media-body ml-2 d-none d-lg-block">
<span class="mb-0 text-sm font-weight-bold">{{ $user->name }}</span>
</div>
@endif
</div>
</a>

Expand Down
18 changes: 10 additions & 8 deletions resources/views/partials/portal/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,16 @@
<li class="nav-item dropdown">
<a class="nav-link pr-0" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="media align-items-center">
<img src="{{ asset('public/img/user.svg') }}" height="36" width="36" alt="User"/>
<div class="media-body ml-2">
<span class="mb-0 text-sm font-weight-bold">
@if (!empty($user->name))
{{ $user->name }}
@endif
</span>
</div>
@if (is_object($user->picture))
<img src="{{ Storage::url($user->picture->id) }}" class="rounded-circle image-style user-img" alt="{{ $user->name }}"/>
@else
<img src="{{ asset('public/img/user.svg') }}" class="user-img" alt="{{ $user->name }}"/>
@endif
@if (!empty($user->name))
<div class="media-body ml-2">
<span class="mb-0 text-sm font-weight-bold">{{ $user->name }}</span>
</div>
@endif
</div>
</a>
<div class="dropdown-menu dropdown-menu-right">
Expand Down

0 comments on commit acacacb

Please sign in to comment.