A free open source IT asset/license management system
Use new one line code style
snipeb7c011dd2dbe
diff --git a/resources/views/account/view-assets.blade.php b/resources/views/account/view-assets.blade.phpindex bb4e6e6207..42ce556bd2 100755--- a/resources/views/account/view-assets.blade.php+++ b/resources/views/account/view-assets.blade.php@@ -554,11 +554,11 @@}'><thead><tr>- <th>{{ trans('general.name') }}</th>- <th>{{ trans('admin/licenses/form.license_key') }}</th>- <th>{{ trans('admin/licenses/form.to_name') }}</th>- <th>{{ trans('admin/licenses/form.to_email') }}</th>- <th>{{ trans('general.category') }}</th>+ <th class="col-md-2">{{ trans('general.name') }}</th>+ <th class="col-md-4">{{ trans('admin/licenses/form.license_key') }}</th>+ <th class="col-md-2">{{ trans('admin/licenses/form.to_name') }}</th>+ <th class="col-md-2">{{ trans('admin/licenses/form.to_email') }}</th>+ <th class="col-md-2">{{ trans('general.category') }}</th></tr></thead>@@ -570,7 +570,8 @@</td><td>@can('viewKeys', $license)- <code style="white-space: pre-wrap"><span class="js-copy-link" data-clipboard-target=".js-copy-key" aria-hidden="true" data-tooltip="true" data-placement="top" title="{{ trans('general.copy_to_clipboard') }}"><span class="js-copy-key">{{ $license->serial }}</span></span></code>+ <code class="single-line"><span class="js-copy-link" data-clipboard-target=".js-copy-key-{{ $license->id }}" aria-hidden="true" data-tooltip="true" data-placement="top" title="{{ trans('general.copy_to_clipboard') }}"><span class="js-copy-key-{{ $license->id }}">{{ $license->serial }}</span></span></code>+@else------------@endcandiff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.phpindex 224bf32813..e7bd3460e5 100755--- a/resources/views/hardware/view.blade.php+++ b/resources/views/hardware/view.blade.php@@ -1152,10 +1152,10 @@<table class="table"><thead><tr>- <th class="col-md-4">{{ trans('general.name') }}</th>- <th class="col-md-4"><span class="line"></span>{{ trans('admin/licenses/form.license_key') }}</th>- <th class="col-md-4"><span class="line"></span>{{ trans('admin/licenses/form.expiration') }}</th>- <th class="col-md-1"><span class="line"></span>{{ trans('table.actions') }}</th>+ <th>{{ trans('general.name') }}</th>+ <th><span class="line"></span>{{ trans('admin/licenses/form.license_key') }}</th>+ <th><span class="line"></span>{{ trans('admin/licenses/form.expiration') }}</th>+ <th><span class="line"></span>{{ trans('table.actions') }}</th></tr></thead><tbody>@@ -1165,7 +1165,7 @@<td><a href="{{ route('licenses.show', $seat->license->id) }}">{{ $seat->license->name }}</a></td><td>@can('viewKeys', $seat->license)- <code style="white-space: pre-wrap"><span class="js-copy-link" data-clipboard-target=".js-copy-key-{{ $seat->id }}" aria-hidden="true" data-tooltip="true" data-placement="top" title="{{ trans('general.copy_to_clipboard') }}"><span class="js-copy-key-{{ $seat->id }}">{{ $seat->license->serial }}</span></span></code>+ <code class="single-line"><span class="js-copy-link" data-clipboard-target=".js-copy-key-{{ $seat->id }}" aria-hidden="true" data-tooltip="true" data-placement="top" title="{{ trans('general.copy_to_clipboard') }}"><span class="js-copy-key-{{ $seat->id }}">{{ $seat->license->serial }}</span></span></code>@else------------@endcandiff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.phpindex 19ed335c96..4f3c1d5ff9 100644--- a/resources/views/partials/bootstrap-table.blade.php+++ b/resources/views/partials/bootstrap-table.blade.php@@ -335,7 +335,7 @@function licenseKeyFormatter(value, row) {- return '<code style="white-space: pre-wrap"><span class="js-copy-link" data-clipboard-target=".js-copy-key-' + row.id + '" aria-hidden="true" data-tooltip="true" data-placement="top" title="{{ trans('general.copy_to_clipboard') }}"><span class="js-copy-key-' + row.id + '">' + value + '</span></span></code>';+ return '<code class="single-line"><span class="js-copy-link" data-clipboard-target=".js-copy-key-' + row.id + '" aria-hidden="true" data-tooltip="true" data-placement="top" title="{{ trans('general.copy_to_clipboard') }}"><span class="js-copy-key-' + row.id + '">' + value + '</span></span></code>';}diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.phpindex d4142da55c..7ee3c4926c 100755--- a/resources/views/users/view.blade.php+++ b/resources/views/users/view.blade.php@@ -792,6 +792,8 @@</div><!-- /asset --><div class="tab-pane" id="licenses">++<div class="table-responsive"><tabledata-cookie-id-table="userLicenseTable"@@ -815,7 +817,7 @@<thead><tr>- <th class="col-md-5">{{ trans('general.name') }}</th>+ <th>{{ trans('general.name') }}</th><th>{{ trans('admin/licenses/form.license_key') }}</th><th data-footer-formatter="sumFormatter" data-fieldname="purchase_cost">{{ trans('general.purchase_cost') }}</th><th>{{ trans('admin/licenses/form.purchase_order') }}</th>@@ -831,7 +833,7 @@</td><td class="col-md-4">@can('viewKeys', $license)- <code style="white-space: pre-wrap"><span class="js-copy-link" data-clipboard-target=".js-copy-key-{{ $license->id }}" aria-hidden="true" data-tooltip="true" data-placement="top" title="{{ trans('general.copy_to_clipboard') }}"><span class="js-copy-key-{{ $license->id }}">{{ $license->serial }}</span></span></code>+ <code class="single-line"><span class="js-copy-link" data-clipboard-target=".js-copy-key-{{ $license->id }}" aria-hidden="true" data-tooltip="true" data-placement="top" title="{{ trans('general.copy_to_clipboard') }}"><span class="js-copy-key-{{ $license->id }}">{{ $license->serial }}</span></span></code>@else------------@endcan