mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -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',
|
||||
'map_fields'=> 'Map :item_type Field',
|
||||
'remaining_var' => ':count Remaining',
|
||||
'assets_in_var' => 'Assets in :name :type',
|
||||
'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.',
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{{-- Page title --}}
|
||||
@section('title')
|
||||
|
||||
{{ trans('general.assets_in_var', ['name'=> $category->name, 'type' => trans('general.category')]) }}
|
||||
{{ $category->name }}
|
||||
|
||||
@parent
|
||||
@stop
|
||||
|
@ -36,7 +36,19 @@
|
|||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<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')
|
||||
<badge class="badge badge-secondary"> {{ $category->showableAssets()->count() }}</badge>
|
||||
@endif
|
||||
|
@ -44,7 +56,8 @@
|
|||
</li>
|
||||
@if ($category->category_type=='asset')
|
||||
<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>
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue