diff options
Diffstat (limited to 'app/Template/user_view/sessions.php')
-rw-r--r-- | app/Template/user_view/sessions.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/Template/user_view/sessions.php b/app/Template/user_view/sessions.php new file mode 100644 index 00000000..eda3ef7f --- /dev/null +++ b/app/Template/user_view/sessions.php @@ -0,0 +1,26 @@ +<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 table-fixed"> + <tr> + <th class="column-20"><?= t('Creation date') ?></th> + <th class="column-20"><?= t('Expiration date') ?></th> + <th class="column-15"><?= t('IP address') ?></th> + <th><?= t('User agent') ?></th> + <th class="column-10"><?= t('Action') ?></th> + </tr> + <?php foreach ($sessions as $session): ?> + <tr> + <td><?= $this->dt->datetime($session['date_creation']) ?></td> + <td><?= $this->dt->datetime($session['expiration']) ?></td> + <td><?= $this->text->e($session['ip']) ?></td> + <td><?= $this->text->e($session['user_agent']) ?></td> + <td><?= $this->url->link(t('Remove'), 'UserViewController', 'removeSession', array('user_id' => $user['id'], 'id' => $session['id']), true) ?></td> + </tr> + <?php endforeach ?> + </table> +<?php endif ?> |