]>
Commit | Line | Data |
---|---|---|
20d7f5eb MT |
1 | {% extends "../base.html" %} |
2 | ||
3 | {% block title %}{{ _("Sessions") }}{% end block %} | |
4 | ||
5 | {% block body %} | |
6 | <ul class="breadcrumb"> | |
7 | <li> | |
8 | <a href="/">{{ _("Home") }}</a> | |
9 | <span class="divider">/</span> | |
10 | </li> | |
11 | <li class="active"> | |
12 | <a href="/sessions">{{ _("Sessions") }}</a> | |
13 | </li> | |
14 | </ul> | |
15 | ||
16 | <div class="page-header"> | |
17 | <h2>{{ _("Sessions") }}</h2> | |
18 | </div> | |
19 | ||
20 | <table class="table table-striped table-hover"> | |
21 | <tbody> | |
22 | {% for user, user_sessions in sessions %} | |
23 | <tr> | |
24 | <td> | |
25 | <div class="ac"> | |
26 | <img class="img-polaroid" src="{{ user.gravatar_icon(96) }}" alt="{{ user.realname }}"> | |
27 | <br><br> | |
28 | <a href="/user/{{ user.name }}">{{ user.realname }}</a> | |
29 | </div> | |
30 | </td> | |
31 | <td> | |
32 | <table class="table table-striped table-hover"> | |
33 | <thead> | |
34 | <tr> | |
35 | <th>{{ _("Started") }}</th> | |
36 | <th>{{ _("Valid until") }}</th> | |
37 | <th>{{ _("Last seen at") }}</th> | |
38 | </tr> | |
39 | </thead> | |
40 | <tbody> | |
41 | {% for s in user_sessions %} | |
42 | <tr> | |
43 | <td> | |
44 | {{ format_date(s.creation_time) }} | |
45 | </td> | |
46 | <td> | |
47 | {{ format_date(s.valid_until) }} | |
48 | </td> | |
49 | <td> | |
50 | {{ s.from_address or _("N/A") }} | |
51 | </td> | |
52 | </tr> | |
53 | {% end %} | |
54 | </tbody> | |
55 | </table> | |
56 | </td> | |
57 | </tr> | |
58 | {% end %} | |
59 | </tbody> | |
60 | </table> | |
61 | {% end block %} |