Improve user controllers and views
This commit is contained in:
24
app/Template/user_view/last.php
Normal file
24
app/Template/user_view/last.php
Normal file
@@ -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 ?>
|
||||
Reference in New Issue
Block a user