1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Template/user/sessions.php

27 lines
960 B
PHP
Raw Normal View History

2014-10-22 19:59:09 +02:00
<div class="page-header">
<h2><?= t('Persistent connections') ?></h2>
</div>
<?php if (empty($sessions)): ?>
<p class="alert"><?= t('No session.') ?></p>
<?php else: ?>
<table class="table-small">
<tr>
<th><?= t('Creation date') ?></th>
<th><?= t('Expiration date') ?></th>
<th><?= t('IP address') ?></th>
<th><?= t('User agent') ?></th>
<th><?= t('Action') ?></th>
</tr>
<?php foreach($sessions as $session): ?>
<tr>
<td><?= dt('%B %e, %Y at %k:%M %p', $session['date_creation']) ?></td>
<td><?= dt('%B %e, %Y at %k:%M %p', $session['expiration']) ?></td>
2015-01-16 14:23:05 +01:00
<td><?= $this->e($session['ip']) ?></td>
<td><?= $this->e($this->summary($session['user_agent'])) ?></td>
<td><?= $this->a(t('Remove'), 'user', 'removeSession', array('user_id' => $user['id'], 'id' => $session['id']), true) ?></td>
2014-10-22 19:59:09 +02:00
</tr>
<?php endforeach ?>
</table>
<?php endif ?>