diff options
Diffstat (limited to 'app/Template/user/sessions.php')
-rw-r--r-- | app/Template/user/sessions.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/Template/user/sessions.php b/app/Template/user/sessions.php new file mode 100644 index 00000000..a7504a7a --- /dev/null +++ b/app/Template/user/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"> + <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> + <td><?= $this->e($session['ip']) ?></td> + <td><?= $this->e($this->text->truncate($session['user_agent'])) ?></td> + <td><?= $this->url->link(t('Remove'), 'user', 'removeSession', array('user_id' => $user['id'], 'id' => $session['id']), true) ?></td> + </tr> + <?php endforeach ?> + </table> +<?php endif ?> |