2014-10-22 19:59:09 +02:00
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Last logins') ?></h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if (empty($last_logins)): ?>
|
|
|
|
<p class="alert"><?= t('Never connected.') ?></p>
|
|
|
|
<?php else: ?>
|
2015-08-16 17:04:56 +02:00
|
|
|
<table class="table-small table-fixed">
|
2014-10-22 19:59:09 +02:00
|
|
|
<tr>
|
2015-08-16 17:04:56 +02:00
|
|
|
<th class="column-20"><?= t('Login date') ?></th>
|
|
|
|
<th class="column-15"><?= t('Authentication method') ?></th>
|
|
|
|
<th class="column-15"><?= t('IP address') ?></th>
|
2014-10-22 19:59:09 +02:00
|
|
|
<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>
|
2015-01-16 14:23:05 +01:00
|
|
|
<td><?= $this->e($login['auth_type']) ?></td>
|
|
|
|
<td><?= $this->e($login['ip']) ?></td>
|
2015-08-16 17:04:56 +02:00
|
|
|
<td><?= $this->e($login['user_agent']) ?></td>
|
2014-10-22 19:59:09 +02:00
|
|
|
</tr>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</table>
|
|
|
|
<?php endif ?>
|