mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Merge pull request #13315 from snipe/features/add_warranty_link_even_if_no_warranty_set
Moved warranty into manufactuer’s section
This commit is contained in:
commit
f15e14f905
|
@ -342,8 +342,9 @@
|
|||
@if (($asset->model) && ($asset->model->manufacturer->url))
|
||||
<li>
|
||||
<i class="fas fa-globe-americas" aria-hidden="true"></i>
|
||||
<a href="{{ $asset->model->manufacturer->url }}">
|
||||
<a href="{{ $asset->model->manufacturer->url }}" target="_blank">
|
||||
{{ $asset->model->manufacturer->url }}
|
||||
<i class="fa fa-external-link" aria-hidden="true"></i>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
@ -351,8 +352,19 @@
|
|||
@if (($asset->model) && ($asset->model->manufacturer->support_url))
|
||||
<li>
|
||||
<i class="far fa-life-ring" aria-hidden="true"></i>
|
||||
<a href="{{ $asset->model->manufacturer->support_url }}">
|
||||
<a href="{{ $asset->model->manufacturer->support_url }}" target="_blank">
|
||||
{{ $asset->model->manufacturer->support_url }}
|
||||
<i class="fa fa-external-link" aria-hidden="true"></i>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if (($asset->model->manufacturer) && ($asset->model->manufacturer->warranty_lookup_url!=''))
|
||||
<li>
|
||||
<i class="far fa-wrench" aria-hidden="true"></i>
|
||||
<a href="{{ $asset->present()->dynamicWarrantyUrl() }}" target="_blank">
|
||||
{{ $asset->present()->dynamicWarrantyUrl() }}
|
||||
<i class="fa fa-external-link" aria-hidden="true"><span class="sr-only">{{ trans('admin/hardware/general.mfg_warranty_lookup', ['manufacturer' => $asset->model->manufacturer->name]) }}</span></i>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
|
Loading…
Reference in a new issue