diff --git a/app/Presenters/ManufacturerPresenter.php b/app/Presenters/ManufacturerPresenter.php index bc1f08c0d2..f5c15f1fe5 100644 --- a/app/Presenters/ManufacturerPresenter.php +++ b/app/Presenters/ManufacturerPresenter.php @@ -47,7 +47,7 @@ class ManufacturerPresenter extends Presenter 'switchable' => true, 'title' => trans('admin/manufacturers/table.url'), 'visible' => true, - 'formatter' => 'linkFormatter', + 'formatter' => 'externalLinkFormatter', ], [ 'field' => 'support_url', @@ -56,7 +56,7 @@ class ManufacturerPresenter extends Presenter 'switchable' => true, 'title' => trans('admin/manufacturers/table.support_url'), 'visible' => true, - 'formatter' => 'linkFormatter', + 'formatter' => 'externalLinkFormatter', ], [ @@ -85,7 +85,7 @@ class ManufacturerPresenter extends Presenter 'switchable' => true, 'title' => trans('admin/manufacturers/table.warranty_lookup_url'), 'visible' => false, - 'formatter' => 'linkFormatter', + 'formatter' => 'externalLinkFormatter', ], [ diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index e29c9da3af..44d63c2b49 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -597,7 +597,7 @@ @if (($asset->model->manufacturer) && ($asset->model->manufacturer->warranty_lookup_url!='')) - {{ trans('hardware/general.mfg_warranty_lookup') }} + {{ trans('admin/hardware/general.mfg_warranty_lookup', ['manufacturer' => $asset->model->manufacturer->name]) }} @endif diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 3e6a9ea3b0..3f263dd96e 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -511,8 +511,12 @@ } function externalLinkFormatter(value) { + if (value) { - return '' + value + ''; + if ((value.indexOf("{") === -1) || (value.indexOf("}") ===-1)) { + return ' ' + value + ''; + } + return value; } }