|
1 | 1 | <ul class="nav nav-pills"> |
| 2 | + |
| 3 | + <li role="presentation" class="{!! $n_notices == 0 ? 'disabled' : ($tools->fullUrlIs(route($setting->grab('main_route').'.notices')) ? 'active' : '') !!}" > |
| 4 | + <a href="{{ $n_notices == 0 ? '#' : route($setting->grab('main_route').'.notices') }}" title="{{ $n_notices == 0 ? trans('panichd::lang.ticket-notices-empty') : trans('panichd::lang.nav-notices-number-title', ['num' => $n_notices]) }}">{{ trans('panichd::lang.ticket-notices-title') }} <span class="badge">{{ $n_notices }}</span></a> |
| 5 | + </li> |
| 6 | + |
2 | 7 | <?php |
3 | 8 | $title = trans('panichd::lang.filter-'.((session()->has('panichd_filter_currentLevel') or (isset($ticket) and session()->has('panichd_filters'))) ? 'on' : 'off').'-total'); |
4 | 9 | $nav_hidden_sizes = $setting->grab('nav_icons_user_sizes'); |
|
54 | 59 | </a> |
55 | 60 | </li> |
56 | 61 | @endif |
57 | | - <li role="presentation" class="{!! $tools->fullUrlIs(route($setting->grab('main_route').'.notices')) ? "active" : "" !!}" > |
58 | | - @if($n_notices == 0) |
59 | | - <a href="#" title="{{ trans('panichd::lang.ticket-notices-empty') }}" style="color: #ccc; cursor: help"><span class="glyphicon glyphicon-bell" aria-hidden="true"></span><span aria-label="{{ trans('panichd::lang.ticket-notices-title') }}"></span></a> |
60 | | - @else |
61 | | - <a href="{{ route($setting->grab('main_route').'.notices') }}" title="{{ trans('panichd::lang.nav-notices-number-title', ['num' => $n_notices]) }}"><span class="glyphicon glyphicon-bell" aria-hidden="true"></span><span aria-label="{{ trans('panichd::lang.ticket-notices-title') }}"></span> <span class="badge">{{ $n_notices }}</span></a> |
62 | | - @endif |
63 | | - </li> |
64 | | - |
65 | 62 |
|
66 | 63 | <li role="presentation" class="{!! $tools->fullUrlIs(action('\PanicHD\PanicHD\Controllers\TicketsController@index')) ? "active" : "" !!}"> |
67 | 64 | <a href="{{ action('\PanicHD\PanicHD\Controllers\TicketsController@index') }}" title="{{ trans('panichd::lang.nav-active-tickets-title') }}"> |
|
121 | 118 | $nav_icon = "hidden"; |
122 | 119 | } |
123 | 120 | ?> |
124 | | - <li role="presentation" class="{!! $tools->fullUrlIs(action('\PanicHD\PanicHD\Controllers\DashboardController@index')) || Request::is($setting->grab('admin_route').'/indicator*') ? "active" : "" !!}"> |
125 | | - <a href="{{ action('\PanicHD\PanicHD\Controllers\DashboardController@index') }}" title="{{ trans('panichd::admin.nav-dashboard-title') }}"> |
126 | | - <span class="{{ $nav_text }}">{{ trans('panichd::admin.nav-dashboard') }}</span> |
127 | | - <span class="{{ $nav_icon }} glyphicon glyphicon-stats"></span> |
128 | | - </a> |
129 | | - </li> |
130 | 121 |
|
131 | 122 | <li role="presentation" class="dropdown {!! |
132 | 123 | $tools->fullUrlIs(action('\PanicHD\PanicHD\Controllers\StatusesController@index').'*') || |
|
139 | 130 | ? "active" : "" !!}"> |
140 | 131 |
|
141 | 132 | <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="{{ trans('panichd::admin.nav-settings') }}"> |
142 | | - <span class="{{ $nav_text }}">{{ trans('panichd::admin.nav-settings') }}</span> |
| 133 | + <span class="{{ $nav_text }}">{{ $setting->grab('admin_button_text') }}</span> |
143 | 134 | <span class="{{ $nav_icon }} glyphicon glyphicon-cog"></span> |
144 | 135 | <span class="caret"></span> |
145 | 136 | </a> |
146 | 137 | <ul class="dropdown-menu"> |
| 138 | + <li role="presentation" class="{!! $tools->fullUrlIs(action('\PanicHD\PanicHD\Controllers\DashboardController@index')) || Request::is($setting->grab('admin_route').'/indicator*') ? 'active' : '' !!}"> |
| 139 | + <a href="{{ action('\PanicHD\PanicHD\Controllers\DashboardController@index') }}" title="{{ trans('panichd::admin.nav-dashboard-title') }}"> |
| 140 | + {{ trans('panichd::admin.nav-dashboard') }} |
| 141 | + </a> |
| 142 | + </li> |
| 143 | + |
147 | 144 | <li role="presentation" class="{!! $tools->fullUrlIs(action('\PanicHD\PanicHD\Controllers\StatusesController@index').'*') ? "active" : "" !!}"> |
148 | 145 | <a href="{{ action('\PanicHD\PanicHD\Controllers\StatusesController@index') }}">{{ trans('panichd::admin.nav-statuses') }}</a> |
149 | 146 | </li> |
|
0 commit comments