fix: closes #11825, user icons in global privileges

isekai-main
Barış Soner Uşaklı 2 years ago
parent afb38c7158
commit dae4f9f7b6

@ -4,7 +4,7 @@
100% {background-color: white;}
}
[data-group-name].selected, [data-uid].selected {
tr[data-group-name].selected, tr[data-uid].selected {
animation-name: fadeOut;
animation-duration: 5s;
animation-fill-mode: both;

@ -94,18 +94,15 @@
{{{ each privileges.users }}}
<tr data-uid="{privileges.users.uid}"{{{ if privileges.users.banned }}} data-banned{{{ end }}}>
<td>
{{{ if ./picture }}}
<img class="avatar avatar-sm" src="{privileges.users.picture}" title="{privileges.users.username}" alt="" />
{{{ else }}}
<div class="avatar avatar-sm" style="background-color: {../icon:bgColor};">{../icon:text}</div>
{{{ end }}}
</td>
<td>
{buildAvatar(privileges.users, "24px", true)}
{{{ if privileges.users.banned }}}
<i class="ban fa fa-gavel text-danger" title="[[admin/manage/categories:privileges.banned-user-inheritance]]"></i>
{{{ end }}}
{privileges.users.username}
</td>
<td>
<!-- need this empty -->
</td>
<td class="text-center"><input autocomplete="off" type="checkbox" class="checkbox-helper"></td>
{function.spawnPrivilegeStates, privileges.users.username, ../privileges}
</tr>

Loading…
Cancel
Save