1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 17:10:10 +00:00

use badges to denote admin users in accounts tab

This commit is contained in:
Harvey Tindall 2020-11-15 17:13:35 +00:00
parent fa96f21429
commit f3c3b3ce76
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
2 changed files with 1 additions and 3 deletions

View File

@ -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">

View File

@ -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>
`; `;
}; };