Skip to content

Commit 5f5cd14

Browse files
committed
Delete obsolete navbar badge titles
1 parent a2a917b commit 5f5cd14

4 files changed

Lines changed: 3 additions & 14 deletions

File tree

src/Translations/ca/lang.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@
9898
'filter-owner-all' => 'Tots',
9999
'filter-agent' => 'Agent',
100100
'filter-agent-all' => 'Tots',
101-
'filter-on-total' => 'Compte segons filtre',
102-
'filter-off-total' => 'Compte total',
103101

104102
'btn-add' => 'Afegir',
105103
'btn-back' => 'Enrere',

src/Translations/en/lang.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@
9898
'filter-owner-all' => 'All',
9999
'filter-agent' => 'Agent',
100100
'filter-agent-all' => 'All',
101-
'filter-on-total' => 'Count depends on active filters',
102-
'filter-off-total' => 'Total total',
103101

104102
'btn-add' => 'Add',
105103
'btn-back' => 'Back',

src/Translations/pt_BR/lang.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@
123123

124124
'filter-agent-all' => 'Todos',
125125

126-
'filter-on-total' => 'A contagem depende de filtros ativos',
127-
128-
'filter-off-total' => 'Total total',
129126

130127
'btn-add' => 'Adicionar',
131128
'btn-back' => 'Voltar',

src/Views/shared/nav.blade.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22
<a class="nav-link" 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>
33
</li>
44

5-
<?php
6-
$title = trans('panichd::lang.filter-'.((session()->has('panichd_filter_currentLevel') or (isset($ticket) and session()->has('panichd_filters'))) ? 'on' : 'off').'-total');
7-
?>
8-
95
@if($u->canViewNewTickets())
106
<li class="nav-item dropdown {!! $tools->fullUrlIs(action('\PanicHD\PanicHD\Controllers\TicketsController@indexNewest')) || $tools->fullUrlIs(action('\PanicHD\PanicHD\Controllers\TicketsController@create')) || (isset($ticket) && $ticket->isNew()) ? "active" : "" !!}">
117
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="{{ trans('panichd::lang.nav-new-tickets-title') }}">
128
<span>{{ trans('panichd::lang.nav-new-tickets') }}</span>
139

14-
<span class="badge" title="{{ $title }}" style="cursor: help">
10+
<span class="badge" style="cursor: help">
1511
{{ PanicHD\PanicHD\Models\Ticket::newest()->visible()->count() }}
1612
</span>
1713
</a>
@@ -32,7 +28,7 @@
3228
<a class="nav-link" href="{{ action('\PanicHD\PanicHD\Controllers\TicketsController@index') }}" title="{{ trans('panichd::lang.nav-active-tickets-title') }}">
3329
<span>{{ trans('panichd::lang.active-tickets-adjective') }}</span>
3430

35-
<span class="badge" title="{{ $title }}" style="cursor: help">
31+
<span class="badge" style="cursor: help">
3632
{{ PanicHD\PanicHD\Models\Ticket::active()->visible()->count() }}
3733
</span>
3834
</a>
@@ -41,7 +37,7 @@
4137
<a class="nav-link" href="{{ action('\PanicHD\PanicHD\Controllers\TicketsController@indexComplete') }}" title="{{ trans('panichd::lang.nav-completed-tickets-title') }}">
4238
<span>{{ trans('panichd::lang.complete-tickets-adjective') }}</span>
4339

44-
<span class="badge" title="{{ $title }}" style="cursor: help">
40+
<span class="badge" style="cursor: help">
4541
{{ PanicHD\PanicHD\Models\Ticket::visible()->completedOnYear()->count() }}
4642
</span>
4743
</a>

0 commit comments

Comments
 (0)