Add last login column in users list

This commit is contained in:
Frederic Guillot 2016-12-26 20:51:26 -05:00
parent be76f89408
commit 9a87b6a641
1 changed files with 7 additions and 1 deletions

View File

@ -20,6 +20,7 @@
<tr>
<th><?php echo t('Username') ?></th>
<th><?php echo t('Administrator') ?></th>
<th><?php echo t('Last Login') ?></th>
<th><?php echo t('Action') ?></th>
</tr>
<?php foreach ($users as $user): ?>
@ -27,7 +28,12 @@
<td>
<?php echo Miniflux\Helper\escape($user['username']) ?>
</td>
<td><?php echo $user['is_admin'] ? t('Yes') : t('No') ?></td>
<td>
<?php echo $user['is_admin'] ? t('Yes') : t('No') ?>
</td>
<td>
<?php echo $user['last_login'] ? dt('%e %B %Y %k:%M', $user['last_login']) : t('Never') ?>
</td>
<td>
<?php if (Miniflux\Helper\get_user_id() != $user['id']): ?>
<a href="?action=edit-user&amp;user_id=<?php echo $user['id'] ?>"><?php echo t('Edit') ?></a> -