Merge pull request #9512 from MrPetovan/bug/9501-admin-users-fixes
[frio] Improve admin user list display
This commit is contained in:
commit
7765bd8e43
|
@ -120,7 +120,7 @@ abstract class BaseUsers extends BaseAdmin
|
|||
$user['login_date'] = Temporal::getRelativeDate($user['login_date']);
|
||||
$user['lastitem_date'] = Temporal::getRelativeDate($user['last-item']);
|
||||
$user['is_admin'] = in_array($user['email'], $adminlist);
|
||||
$user['is_deletable'] = (intval($user['uid']) != local_user());
|
||||
$user['is_deletable'] = !$user['account_removed'] && intval($user['uid']) != local_user();
|
||||
$user['deleted'] = ($user['account_removed'] ? Temporal::getRelativeDate($user['account_expires_on']) : False);
|
||||
|
||||
return $user;
|
||||
|
|
|
@ -129,15 +129,9 @@
|
|||
</td>
|
||||
<td class="text-right">
|
||||
{{if $u.is_deletable}}
|
||||
{{if $u.blocked}}
|
||||
<a href="{{$baseurl}}/admin/users/unblock/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$unblock}}">
|
||||
<i class="fa fa-circle-o" aria-hidden="true"></i>
|
||||
</a>
|
||||
{{else}}
|
||||
<a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$block}}">
|
||||
<i class="fa fa-ban" aria-hidden="true"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
<a href="{{$baseurl}}/admin/users/delete/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$delete}}" onclick="return confirm_delete('{{$confirm_delete}}','{{$u.name}}')">
|
||||
<i class="fa fa-trash" aria-hidden="true"></i>
|
||||
</a>
|
||||
|
|
|
@ -86,6 +86,7 @@
|
|||
</i>
|
||||
{{/if}}
|
||||
{{if $u.is_admin}}<i class="fa fa-user-secret text-primary" title="{{$siteadmin}}"></i>{{/if}}
|
||||
{{if $u.blocked}}<i class="fa fa-ban text-danger" title="{{$blocked}}"></i>{{/if}}
|
||||
{{if $u.account_expired}}<i class="fa fa-clock-o text-warning" title="{{$accountexpired}}"></i>{{/if}}
|
||||
</td>
|
||||
{{/if}}
|
||||
|
|
|
@ -87,6 +87,8 @@
|
|||
</i>
|
||||
{{/if}}
|
||||
{{if $u.is_admin}}<i class="fa fa-user-secret text-primary" title="{{$siteadmin}}"></i>{{/if}}
|
||||
{{if $u.blocked}}<i class="fa fa-ban text-danger" title="{{$blocked}}"></i>{{/if}}
|
||||
{{if $u.deleted}}<i class="fa fa-user-times" title="{{$h_deleted}}"></i>{{/if}}
|
||||
{{if $u.account_expired}}<i class="fa fa-clock-o text-warning" title="{{$accountexpired}}"></i>{{/if}}
|
||||
</td>
|
||||
{{/if}}
|
||||
|
@ -131,7 +133,7 @@
|
|||
{{if $u.is_deletable}}
|
||||
{{if $u.blocked}}
|
||||
<a href="{{$baseurl}}/admin/users/unblock/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$unblock}}">
|
||||
<i class="fa fa-circle-o" aria-hidden="true"></i>
|
||||
<i class="fa fa-check-circle-o" aria-hidden="true"></i>
|
||||
</a>
|
||||
{{else}}
|
||||
<a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$block}}">
|
||||
|
|
Loading…
Reference in a new issue