BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

session.twig 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <div class="thin">
  2. <h2>{{ user.id|user_url }} &rsaquo; Sessions</h2>
  3. <div class="box pad">
  4. <p>Note: Clearing cookies can result in ghost sessions which are automatically removed after 30 days.</p>
  5. </div>
  6. <div class="box pad">
  7. <table cellpadding="5" cellspacing="1" border="0" class="session_table border" width="100%">
  8. <tr class="colhead">
  9. <td class="nobr"><strong>IP address</strong></td>
  10. <td><strong>Browser</strong></td>
  11. <td><strong>Platform</strong></td>
  12. <td class="nobr"><strong>Last activity</strong></td>
  13. <td>
  14. <form class="manage_form" name="sessions" action="" method="post">
  15. <input type="hidden" name="action" value="sessions" />
  16. <input type="hidden" name="auth" value="{{ auth }}" />
  17. <input type="hidden" name="all" value="1" />
  18. <input type="submit" value="Log out all" />
  19. </form>
  20. </td>
  21. </tr>
  22. {% for s in session %}
  23. <tr class="row{{ cycle(['a', 'b'], loop.index0) }}">
  24. <td class="nobr">{{ s.IP }}</td>
  25. <td>{{ s.Browser }}</td>
  26. <td>{{ s.OperatingSystem }}</td>
  27. <td>{{ s.LastUpdate|time_diff }}</td>
  28. <td>
  29. <form class="delete_form" name="session" action="" method="post">
  30. <input type="hidden" name="action" value="sessions" />
  31. <input type="hidden" name="auth" value="{{ auth }}" />
  32. <input type="hidden" name="session" value="{{ s.SessionID }}" />
  33. <input type="submit" value="{% if s.SessionID == current %}Current" disabled="disabled{% else %}Log out{% endif %}" />
  34. </form>
  35. </td>
  36. </tr>
  37. {% endfor %}
  38. </table>
  39. </div>
  40. </div>