mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 09:34:10 -08:00
Merge pull request #15357 from snipe/tighten_category_view_translations
Fixed #15330 - Cleaned up category title
This commit is contained in:
commit
7e475a0786
|
@ -559,7 +559,6 @@ return [
|
||||||
'expires' => 'Expires',
|
'expires' => 'Expires',
|
||||||
'map_fields'=> 'Map :item_type Field',
|
'map_fields'=> 'Map :item_type Field',
|
||||||
'remaining_var' => ':count Remaining',
|
'remaining_var' => ':count Remaining',
|
||||||
'assets_in_var' => 'Assets in :name :type',
|
|
||||||
'label' => 'Label',
|
'label' => 'Label',
|
||||||
'import_asset_tag_exists' => 'An asset with the asset tag :asset_tag already exists and an update was not requested. No change was made.',
|
'import_asset_tag_exists' => 'An asset with the asset tag :asset_tag already exists and an update was not requested. No change was made.',
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{{-- Page title --}}
|
{{-- Page title --}}
|
||||||
@section('title')
|
@section('title')
|
||||||
|
|
||||||
{{ trans('general.assets_in_var', ['name'=> $category->name, 'type' => trans('general.category')]) }}
|
{{ $category->name }}
|
||||||
|
|
||||||
@parent
|
@parent
|
||||||
@stop
|
@stop
|
||||||
|
@ -36,7 +36,19 @@
|
||||||
<div class="nav-tabs-custom">
|
<div class="nav-tabs-custom">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="active">
|
<li class="active">
|
||||||
<a href="#items" data-toggle="tab" title="{{ trans('general.items') }}"> {{ ucwords($category_type_route) }}
|
<a href="#items" data-toggle="tab" title="{{ trans('general.items') }}">
|
||||||
|
@if ($category->category_type=='asset')
|
||||||
|
{{ trans('general.assets') }}
|
||||||
|
@elseif ($category->category_type=='accessory')
|
||||||
|
{{ trans('general.accessories') }}
|
||||||
|
@elseif ($category->category_type=='license')
|
||||||
|
{{ trans('general.licenses') }}
|
||||||
|
@elseif ($category->category_type=='consumable')
|
||||||
|
{{ trans('general.consumables') }}
|
||||||
|
@elseif ($category->category_type=='component')
|
||||||
|
{{ trans('general.components') }}
|
||||||
|
@endif
|
||||||
|
|
||||||
@if ($category->category_type=='asset')
|
@if ($category->category_type=='asset')
|
||||||
<badge class="badge badge-secondary"> {{ $category->showableAssets()->count() }}</badge>
|
<badge class="badge badge-secondary"> {{ $category->showableAssets()->count() }}</badge>
|
||||||
@endif
|
@endif
|
||||||
|
@ -44,7 +56,8 @@
|
||||||
</li>
|
</li>
|
||||||
@if ($category->category_type=='asset')
|
@if ($category->category_type=='asset')
|
||||||
<li>
|
<li>
|
||||||
<a href="#models" data-toggle="tab" title="{{ trans('general.asset_models') }}">{{ trans('general.asset_models') }}
|
<a href="#models" data-toggle="tab" title="{{ trans('general.asset_models') }}">
|
||||||
|
{{ trans('general.asset_models') }}
|
||||||
<badge class="badge badge-secondary"> {{ $category->models->count()}}</badge>
|
<badge class="badge badge-secondary"> {{ $category->models->count()}}</badge>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue