diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-04 21:04:33 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-04 21:04:33 -0500 |
commit | 6739dba792f210a1836489a191527747d21e3da4 (patch) | |
tree | b93e9df07f130c719d37b63700b960f1728e6707 /app/Template/user/last.php | |
parent | 66e0028b4aad5b3bd2604efb34fe89693383aa86 (diff) |
Move user templates to a subfolder
Diffstat (limited to 'app/Template/user/last.php')
-rw-r--r-- | app/Template/user/last.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/Template/user/last.php b/app/Template/user/last.php new file mode 100644 index 00000000..0b55b0d5 --- /dev/null +++ b/app/Template/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 |