Miglioramento icona utente generico

This commit is contained in:
loviuz 2024-06-29 01:37:08 +02:00
parent 75eeee03ec
commit b53704f00f
3 changed files with 6 additions and 18 deletions

BIN
assets/src/img/user.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

@ -469,15 +469,10 @@ if (Auth::check()) {
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image">';
$user_photo = $user->photo;
if ($user_photo) {
echo '
<img src="'.$user_photo.'" class="img-circle elevation-2" alt="'.$user['username'].'" />';
} else {
echo '
<i class="fa fa-user-circle-o fa-2x" alt="'.tr('Utente').'"></i>';
}
$user_photo = $user->photo ?: $rootdir.'/assets/dist/img/user.png';
echo '
<img src="'.$user_photo.'" class="img-circle elevation-2" alt="'.$user['username'].'" />
</div>
<div class="info">

View File

@ -44,23 +44,16 @@ $module = Module::where('name', 'Utenti e permessi')->first();
echo '
<div class="card card-widget widget-user">
<div class="widget-user-header bg-'.(($theme != 'default') ? $theme : 'primary').'">
<div class="widget-user-header bg-orange">
<h3 class="widget-user-username">'.$user['username'].'</h3>
<h5 class="widget-user-desc">'.$user['gruppo'].'</h5>
</div>
<div class="widget-user-image">';
$user_photo = $user->photo;
if ($user_photo) {
echo '
<img src="'.$user_photo.'" class="img-circle" alt="'.$user['username'].'" />';
} else {
echo '
<i style="color:white;margin-left:5px;" class="fa fa-user-circle-o fa-5x" alt="'.tr('OpenSTAManager').'"></i>';
}
$user_photo = $user->photo ?: $rootdir.'/assets/dist/img/user.png';
echo '
<img src="'.$user_photo.'" class="img-circle" alt="'.$user['username'].'" />
</div>
<div class="card-footer">
<div class="row">