mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-23 01:20:11 +00:00
use badges to denote admin users in accounts tab
This commit is contained in:
parent
fa96f21429
commit
f3c3b3ce76
@ -409,7 +409,6 @@
|
|||||||
<th scope="col">Username</th>
|
<th scope="col">Username</th>
|
||||||
<th scope="col">Email Address</th>
|
<th scope="col">Email Address</th>
|
||||||
<th scope="col">Last Active</th>
|
<th scope="col">Last Active</th>
|
||||||
<th scope="col">Admin?</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="accountsList">
|
<tbody id="accountsList">
|
||||||
|
@ -63,10 +63,9 @@ export function populateUsers(): void {
|
|||||||
}
|
}
|
||||||
return `
|
return `
|
||||||
<td nowrap="nowrap" class="align-middle" scope="row"><input class="${fci}" type="checkbox" value="" id="select_${id}" onclick="checkCheckboxes();"></td>
|
<td nowrap="nowrap" class="align-middle" scope="row"><input class="${fci}" type="checkbox" value="" id="select_${id}" onclick="checkCheckboxes();"></td>
|
||||||
<td nowrap="nowrap" class="align-middle">${username}</td>
|
<td nowrap="nowrap" class="align-middle">${username}${admin ? '<span style="margin-left: 1rem;" class="badge rounded-pill bg-info text-dark">Admin</span>' : ''}</td>
|
||||||
<td nowrap="nowrap" class="align-middle">${generateEmail(id, name, email)}</td>
|
<td nowrap="nowrap" class="align-middle">${generateEmail(id, name, email)}</td>
|
||||||
<td nowrap="nowrap" class="align-middle">${lastActive}</td>
|
<td nowrap="nowrap" class="align-middle">${lastActive}</td>
|
||||||
<td nowrap="nowrap" class="align-middle">${isAdmin}</td>
|
|
||||||
`;
|
`;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user