Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

loadLastSessions.view.php 1.1KB

12345678910111213141516171819202122232425262728
  1. <?php if(is_array($this->view->sessions) && !empty($this->view->sessions)): ?>
  2. <div class="clearfix">
  3. <a href="<?php echo $this->helper->setHash('users-sessions/1'); ?>" class="float-right"><?php echo _('Show more...'); ?></a>
  4. </div>
  5. <table class="table table-hover">
  6. <thead class="thead-light">
  7. <tr>
  8. <th width="1%"></th>
  9. <th><?php echo _('Surname'); ?></th>
  10. <th><?php echo _('Name'); ?></th>
  11. <th class="text-right"><?php echo _('Last action'); ?></th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. <?php foreach($this->view->sessions as $session): ?>
  16. <tr>
  17. <td><?php echo $this->helper->setAvatarView($this->user->getAvatar($session['user_id']), ['timestamp'=>md5($session['updated_at'])]); ?></td>
  18. <td><?php echo $session['surname']; ?></td>
  19. <td><?php echo $session['name']; ?></td>
  20. <td class="text-right"><?php echo $this->helper->dateIntervalString($session['session_updated_at']); ?></td>
  21. </tr>
  22. <?php endforeach; ?>
  23. </tbody>
  24. </table>
  25. <?php else: ?>
  26. <div class="alert alert-light" role="alert"><?php echo _('The sessions content is currently empty, please try again in a few minutes.'); ?></div>
  27. <?php endif; ?>