Re-use existing string

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-13 18:24:56 +01:00
parent e06e4db4b7
commit 2d1aeca949
2 changed files with 19 additions and 9 deletions

View file

@ -12,5 +12,4 @@ return array(
'api_reference' => 'Please check the <a href="https://snipe-it.readme.io/reference" target="_blank">API reference</a> to find specific API endpoints and additional API documentation.', 'api_reference' => 'Please check the <a href="https://snipe-it.readme.io/reference" target="_blank">API reference</a> to find specific API endpoints and additional API documentation.',
'profile_updated' => 'Account successfully updated', 'profile_updated' => 'Account successfully updated',
'no_tokens' => 'You have not created any personal access tokens.', 'no_tokens' => 'You have not created any personal access tokens.',
'expires' => 'Expires',
); );

View file

@ -48,7 +48,11 @@
<th data-sortable="true">{{ trans('admin/settings/general.oauth_secret') }}</th> <th data-sortable="true">{{ trans('admin/settings/general.oauth_secret') }}</th>
<th data-sortable="true">{{ trans('general.created_at') }}</th> <th data-sortable="true">{{ trans('general.created_at') }}</th>
<th data-sortable="true">{{ trans('general.updated_at') }}</th> <th data-sortable="true">{{ trans('general.updated_at') }}</th>
<th data-sortable="true"><span class="sr-only">{{ trans('general.actions') }}</span></th> <th>
<span class="sr-only">
{{ trans('general.actions') }}
</span>
</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -90,7 +94,10 @@
<a class="action-link btn btn-sm btn-warning" <a class="action-link btn btn-sm btn-warning"
wire:click="editClient('{{ $client->id }}')" wire:click="editClient('{{ $client->id }}')"
onclick="$('#modal-edit-client').modal('show');"> onclick="$('#modal-edit-client').modal('show');">
<i class="fas fa-pencil-alt" aria-hidden="true"></i><span class="sr-only">{{ trans('general.update') }}</span> <i class="fas fa-pencil-alt" aria-hidden="true"></i>
<span class="sr-only">
{{ trans('general.update') }}
</span>
</a> </a>
<a class="action-link btn btn-danger btn-sm" wire:click="deleteClient('{{ $client->id }}')"> <a class="action-link btn btn-danger btn-sm" wire:click="deleteClient('{{ $client->id }}')">
@ -122,14 +129,14 @@
<div class="box-body"> <div class="box-body">
<!-- Authorized Tokens --> <!-- Authorized Tokens -->
<table data-cookie-id-table="AuthorizedAppsTale" <table data-cookie-id-table="AuthorizedAppsTable"
data-pagination="true" data-pagination="true"
data-id-table="AuthorizedAppsTale" data-id-table="AuthorizedAppsTable"
data-toolbar="#AuthorizedAppsToolbar" data-toolbar="#AuthorizedAppsToolbar"
data-side-pagination="client" data-side-pagination="client"
data-sort-order="desc" data-sort-order="desc"
data-sort-name="created_at" data-sort-name="created_at"
id="AuthorizedAppsTale" id="AuthorizedAppsTable"
class="table table-striped snipe-table"> class="table table-striped snipe-table">
<thead> <thead>
<tr> <tr>
@ -137,8 +144,12 @@
<th data-sortable="true"> {{ trans('account/general.personal_access_token') }}</th> <th data-sortable="true"> {{ trans('account/general.personal_access_token') }}</th>
<th data-sortable="true">{{ trans('admin/settings/general.oauth_scopes') }}</th> <th data-sortable="true">{{ trans('admin/settings/general.oauth_scopes') }}</th>
<th data-sortable="true">{{ trans('general.created_at') }}</th> <th data-sortable="true">{{ trans('general.created_at') }}</th>
<th data-sortable="true">{{ trans('account/general.expires') }}</th> <th data-sortable="true">{{ trans('general.expires') }}</th>
<th></th> <th>
<span class="sr-only">
{{ trans('general.actions') }}
</span>
</th>
</tr> </tr>
</thead> </thead>