liam-linux-account-manager/templates/users.php

22 lines
585 B
PHP
Raw Permalink Normal View History

2021-11-16 15:11:32 +01:00
<?php
?>
<h1>Users</h1>
<table class="table">
<thead>
<tr>
<th>Username</th>
<th>Full name</th>
<th>Public keys</th>
</tr>
</thead>
<tbody>
<?php foreach($this->get('users') as $user) { ?>
<tr<?php if(!$user->active) out(' class="text-muted"', ESC_NONE) ?>>
<td><a href="<?php outurl('/users/'.urlencode($user->uid))?>" class="user<?php if(!$user->active) out(' text-muted') ?>"><?php out($user->uid)?></a></td>
<td><?php out($user->name)?></td>
<td><?php out(number_format(count($user->list_public_keys())))?></td>
</tr>
<?php } ?>
</tbody>
</table>