Use new one line code style

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-04-03 15:03:31 +01:00
parent a4a99adf80
commit b7c011dd2d
4 changed files with 17 additions and 14 deletions

View file

@ -554,11 +554,11 @@
}'> }'>
<thead> <thead>
<tr> <tr>
<th>{{ trans('general.name') }}</th> <th class="col-md-2">{{ trans('general.name') }}</th>
<th>{{ trans('admin/licenses/form.license_key') }}</th> <th class="col-md-4">{{ trans('admin/licenses/form.license_key') }}</th>
<th>{{ trans('admin/licenses/form.to_name') }}</th> <th class="col-md-2">{{ trans('admin/licenses/form.to_name') }}</th>
<th>{{ trans('admin/licenses/form.to_email') }}</th> <th class="col-md-2">{{ trans('admin/licenses/form.to_email') }}</th>
<th>{{ trans('general.category') }}</th> <th class="col-md-2">{{ trans('general.category') }}</th>
</tr> </tr>
</thead> </thead>
@ -570,7 +570,8 @@
</td> </td>
<td> <td>
@can('viewKeys', $license) @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 @else
------------ ------------
@endcan @endcan

View file

@ -1152,10 +1152,10 @@
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th class="col-md-4">{{ trans('general.name') }}</th> <th>{{ trans('general.name') }}</th>
<th class="col-md-4"><span class="line"></span>{{ trans('admin/licenses/form.license_key') }}</th> <th><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><span class="line"></span>{{ trans('admin/licenses/form.expiration') }}</th>
<th class="col-md-1"><span class="line"></span>{{ trans('table.actions') }}</th> <th><span class="line"></span>{{ trans('table.actions') }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -1165,7 +1165,7 @@
<td><a href="{{ route('licenses.show', $seat->license->id) }}">{{ $seat->license->name }}</a></td> <td><a href="{{ route('licenses.show', $seat->license->id) }}">{{ $seat->license->name }}</a></td>
<td> <td>
@can('viewKeys', $seat->license) @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 @else
------------ ------------
@endcan @endcan

View file

@ -335,7 +335,7 @@
function licenseKeyFormatter(value, row) { 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>';
} }

View file

@ -792,6 +792,8 @@
</div><!-- /asset --> </div><!-- /asset -->
<div class="tab-pane" id="licenses"> <div class="tab-pane" id="licenses">
<div class="table-responsive"> <div class="table-responsive">
<table <table
data-cookie-id-table="userLicenseTable" data-cookie-id-table="userLicenseTable"
@ -815,7 +817,7 @@
<thead> <thead>
<tr> <tr>
<th class="col-md-5">{{ trans('general.name') }}</th> <th>{{ trans('general.name') }}</th>
<th>{{ trans('admin/licenses/form.license_key') }}</th> <th>{{ trans('admin/licenses/form.license_key') }}</th>
<th data-footer-formatter="sumFormatter" data-fieldname="purchase_cost">{{ trans('general.purchase_cost') }}</th> <th data-footer-formatter="sumFormatter" data-fieldname="purchase_cost">{{ trans('general.purchase_cost') }}</th>
<th>{{ trans('admin/licenses/form.purchase_order') }}</th> <th>{{ trans('admin/licenses/form.purchase_order') }}</th>
@ -831,7 +833,7 @@
</td> </td>
<td class="col-md-4"> <td class="col-md-4">
@can('viewKeys', $license) @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 @else
------------ ------------
@endcan @endcan