Skip to content

Commit

Permalink
Merge pull request #14250 from mauro-miatello/develop
Browse files Browse the repository at this point in the history
Cleaned up navbar-custom-menu
  • Loading branch information
snipe authored Feb 13, 2024
2 parents 99e0b65 + 6f0fe16 commit 3e00bc4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions resources/views/layouts/default.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,26 +140,23 @@
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
@can('index', \App\Models\Asset::class)
<li aria-hidden="true"
{!! (Request::is('hardware*') ? ' class="active"' : '') !!} tabindex="-1">
<li aria-hidden="true"{!! (Request::is('hardware*') ? ' class="active"' : '') !!}>
<a href="{{ url('hardware') }}" accesskey="1" tabindex="-1">
<i class="fas fa-barcode fa-fw" aria-hidden="true"></i>
<i class="fas fa-barcode fa-fw"></i>
<span class="sr-only">{{ trans('general.assets') }}</span>
</a>
</li>
@endcan
@can('view', \App\Models\License::class)
<li aria-hidden="true"
{!! (Request::is('licenses*') ? ' class="active"' : '') !!} tabindex="-1">
<li aria-hidden="true"{!! (Request::is('licenses*') ? ' class="active"' : '') !!}>
<a href="{{ route('licenses.index') }}" accesskey="2" tabindex="-1">
<i class="far fa-save fa-fw"></i>
<span class="sr-only">{{ trans('general.licenses') }}</span>
</a>
</li>
@endcan
@can('index', \App\Models\Accessory::class)
<li aria-hidden="true"
{!! (Request::is('accessories*') ? ' class="active"' : '') !!} tabindex="-1">
<li aria-hidden="true"{!! (Request::is('accessories*') ? ' class="active"' : '') !!}>
<a href="{{ route('accessories.index') }}" accesskey="3" tabindex="-1">
<i class="far fa-keyboard fa-fw"></i>
<span class="sr-only">{{ trans('general.accessories') }}</span>
Expand Down Expand Up @@ -233,7 +230,8 @@
<li {!! (Request::is('accessories/create') ? 'class="active"' : '') !!}>
<a href="{{ route('accessories.create') }}" tabindex="-1">
<i class="far fa-keyboard fa-fw" aria-hidden="true"></i>
{{ trans('general.accessory') }}</a>
{{ trans('general.accessory') }}
</a>
</li>
@endcan
@can('create', \App\Models\Consumable::class)
Expand Down Expand Up @@ -982,7 +980,7 @@ class="sr-only">love</span> by <a href="https://twitter.com/snipeitapp" rel="noo
container: 'body',
animation: true,
});
$('[data-toggle="popover"]').popover();
$('.select2 span').addClass('needsclick');
$('.select2 span').removeAttr('title');
Expand Down

0 comments on commit 3e00bc4

Please sign in to comment.