12345678910111213141516171819202122232425262728293031323334353637383940 |
- <div class="thin">
- <h2>{{ user.id|user_url }} › Sessions</h2>
- <div class="box pad">
- <p>Note: Clearing cookies can result in ghost sessions which are automatically removed after 30 days.</p>
- </div>
- <div class="box pad">
- <table cellpadding="5" cellspacing="1" border="0" class="session_table border" width="100%">
- <tr class="colhead">
- <td class="nobr"><strong>IP address</strong></td>
- <td><strong>Browser</strong></td>
- <td><strong>Platform</strong></td>
- <td class="nobr"><strong>Last activity</strong></td>
- <td>
- <form class="manage_form" name="sessions" action="" method="post">
- <input type="hidden" name="action" value="sessions" />
- <input type="hidden" name="auth" value="{{ auth }}" />
- <input type="hidden" name="all" value="1" />
- <input type="submit" value="Log out all" />
- </form>
- </td>
- </tr>
- {% for s in session %}
- <tr class="row{{ cycle(['a', 'b'], loop.index0) }}">
- <td class="nobr">{{ s.IP }}</td>
- <td>{{ s.Browser }}</td>
- <td>{{ s.OperatingSystem }}</td>
- <td>{{ s.LastUpdate|time_diff }}</td>
- <td>
- <form class="delete_form" name="session" action="" method="post">
- <input type="hidden" name="action" value="sessions" />
- <input type="hidden" name="auth" value="{{ auth }}" />
- <input type="hidden" name="session" value="{{ s.SessionID }}" />
- <input type="submit" value="{% if s.SessionID == current %}Current" disabled="disabled{% else %}Log out{% endif %}" />
- </form>
- </td>
- </tr>
- {% endfor %}
- </table>
- </div>
- </div>
|