use badges to denote admin users in accounts tab

pull/20/head
Harvey Tindall 4 years ago
parent fa96f21429
commit f3c3b3ce76
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -409,7 +409,6 @@
<th scope="col">Username</th>
<th scope="col">Email Address</th>
<th scope="col">Last Active</th>
<th scope="col">Admin?</th>
</tr>
</thead>
<tbody id="accountsList">

@ -63,10 +63,9 @@ export function populateUsers(): void {
}
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">${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">${lastActive}</td>
<td nowrap="nowrap" class="align-middle">${isAdmin}</td>
`;
};

Loading…
Cancel
Save