diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-02 23:41:12 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-02 23:41:12 -0800 |
commit | d68ff648b1995c14506d4c61c9d97dc7f599496f (patch) | |
tree | 82a2879ee26a4edd30adf8b9fd7b777e17068c23 /app/Templates/user_last.php | |
parent | 7bb09c3f9b3440cf297104f32e80050601d61533 (diff) |
Refactoring of user management (ui)
Diffstat (limited to 'app/Templates/user_last.php')
-rw-r--r-- | app/Templates/user_last.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/Templates/user_last.php b/app/Templates/user_last.php new file mode 100644 index 00000000..0b55b0d5 --- /dev/null +++ b/app/Templates/user_last.php @@ -0,0 +1,24 @@ +<div class="page-header"> + <h2><?= t('Last logins') ?></h2> +</div> + +<?php if (empty($last_logins)): ?> + <p class="alert"><?= t('Never connected.') ?></p> +<?php else: ?> + <table class="table-small"> + <tr> + <th><?= t('Login date') ?></th> + <th><?= t('Authentication method') ?></th> + <th><?= t('IP address') ?></th> + <th><?= t('User agent') ?></th> + </tr> + <?php foreach($last_logins as $login): ?> + <tr> + <td><?= dt('%B %e, %Y at %k:%M %p', $login['date_creation']) ?></td> + <td><?= Helper\escape($login['auth_type']) ?></td> + <td><?= Helper\escape($login['ip']) ?></td> + <td><?= Helper\escape(Helper\summary($login['user_agent'])) ?></td> + </tr> + <?php endforeach ?> + </table> +<?php endif ?>
\ No newline at end of file |