summaryrefslogtreecommitdiff
path: root/app/Template/user_view/last.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-16 20:55:21 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-16 20:55:21 -0400
commit4514bc1d4b4abff23902e46da76e70f13a3647eb (patch)
treefb4f03d47f49bd8acc6fbae943ac44ac58df9540 /app/Template/user_view/last.php
parentabdf6f97800e7e838b5841820815385b183bab67 (diff)
Improve user controllers and views
Diffstat (limited to 'app/Template/user_view/last.php')
-rw-r--r--app/Template/user_view/last.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/Template/user_view/last.php b/app/Template/user_view/last.php
new file mode 100644
index 00000000..3de4d5e2
--- /dev/null
+++ b/app/Template/user_view/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 table-fixed">
+ <tr>
+ <th class="column-20"><?= t('Login date') ?></th>
+ <th class="column-15"><?= t('Authentication method') ?></th>
+ <th class="column-15"><?= t('IP address') ?></th>
+ <th><?= t('User agent') ?></th>
+ </tr>
+ <?php foreach ($last_logins as $login): ?>
+ <tr>
+ <td><?= $this->dt->datetime($login['date_creation']) ?></td>
+ <td><?= $this->text->e($login['auth_type']) ?></td>
+ <td><?= $this->text->e($login['ip']) ?></td>
+ <td><?= $this->text->e($login['user_agent']) ?></td>
+ </tr>
+ <?php endforeach ?>
+ </table>
+<?php endif ?> \ No newline at end of file