Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-19 13:39:24 +01:00
parent e048f0955f
commit 6f024849e9
4 changed files with 9 additions and 13 deletions

View file

@ -394,6 +394,6 @@ class DepreciationReportPresenter extends Presenter
public function glyph()
{
return '<i class="fas fa-barcode" aria-hidden="true"></i>';
return '<x-icon type="reports" class="text-orange" />';
}
}

View file

@ -544,7 +544,7 @@
<td>{{ $file->created_at }}</td>
<td>
<a class="btn delete-asset btn-danger btn-sm" href="{{ route('delete/licensefile', [$license->id, $file->id]) }}" data-content="{{ trans('general.delete_confirm', ['item' => $file->filename]) }}" data-title="{{ trans('general.delete') }}">
<i class="fas fa-trash icon-white" aria-hidden="true"></i>
<x-icon type="delete" />
<span class="sr-only">{{ trans('general.delete') }}</span>
</a>
</td>

View file

@ -131,7 +131,7 @@
@if (config('app.lock_passwords') && ($user->id))
<!-- disallow changing existing usernames on the demo -->
<div class="col-md-8 col-md-offset-3">
<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
<p class="text-warning"><x-icon type="lock" /> {{ trans('general.feature_disabled') }}</p>
</div>
@endif
@ -215,7 +215,7 @@
{{ trans('admin/users/general.activated_help_text') }}
</label>
<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
<p class="text-warning"><x-icon type="lock" /> {{ trans('general.feature_disabled') }}</p>
@elseif ($user->id === Auth::user()->id)
<!-- disallow the user from editing their own login status -->

View file

@ -168,7 +168,7 @@
<div class="col-md-12 text-center">
@if (($user->isSuperUser()) || ($user->hasAccess('admin')))
<i class="fas fa-crown fa-2x{{ ($user->isSuperUser()) ? ' text-danger' : ' text-orange'}}"></i>
<x-icon type="superadmin" class="fa-2x {{ ($user->isSuperUser()) ? 'text-danger' : 'text-orange'}}" />
<div class="{{ ($user->isSuperUser()) ? 'text-danger' : ' text-orange'}}" style="font-weight: bold">{{ ($user->isSuperUser()) ? strtolower(trans('general.superuser')) : strtolower(trans('general.admin')) }}</div>
@endif
@ -348,13 +348,9 @@
<div class="col-md-9">
@if ($user->isSuperUser())
<label class="label label-danger" data-tooltip="true" title="{{ trans('general.superuser_tooltip') }}">
<x-icon type="superadmin" title="{{ trans('general.superuser') }}" />
</label>&nbsp;
<span class="label label-danger" data-tooltip="true" title="{{ trans('general.superuser_tooltip') }}"><x-icon type="superadmin" title="{{ trans('general.superuser') }}" /></span>&nbsp;
@elseif ($user->hasAccess('admin'))
<label class="label label-warning" data-tooltip="true" title="{{ trans('general.admin_tooltip') }}">
<x-icon type="superadmin" title="{{ trans('general.admin') }}" />
</label>&nbsp;
<span class="label label-warning" data-tooltip="true" title="{{ trans('general.admin_tooltip') }}"><x-icon type="superadmin" title="{{ trans('general.admin') }}" /></span>&nbsp;
@endif
{{ $user->username }}