sessions.ftl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <#import "template.ftl" as layout>
  2. <@layout.mainLayout active='sessions' bodyClass='sessions'; section>
  3. <div class="row">
  4. <div class="col-md-10">
  5. <h2>${msg("sessionsHtmlTitle")}</h2>
  6. </div>
  7. </div>
  8. <table class="table table-striped table-bordered">
  9. <thead>
  10. <tr>
  11. <td>${msg("ip")}</td>
  12. <td>${msg("started")}</td>
  13. <td>${msg("lastAccess")}</td>
  14. <td>${msg("expires")}</td>
  15. <td>${msg("clients")}</td>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <#list sessions.sessions as session>
  20. <tr>
  21. <td>${session.ipAddress}</td>
  22. <td>${session.started?datetime}</td>
  23. <td>${session.lastAccess?datetime}</td>
  24. <td>${session.expires?datetime}</td>
  25. <td>
  26. <#list session.clients as client>
  27. ${client}<br/>
  28. </#list>
  29. </td>
  30. </tr>
  31. </#list>
  32. </tbody>
  33. </table>
  34. <form action="${url.sessionsUrl}" method="post">
  35. <input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}">
  36. <button id="logout-all-sessions" class="btn btn-default">${msg("doLogOutAllSessions")}</button>
  37. </form>
  38. </@layout.mainLayout>