Fix #1555 : API sessions remains open

This commit is contained in:
Romain Neutron
2013-10-31 13:09:56 +01:00
parent 36f7b24f26
commit 24a6dce598
21 changed files with 130 additions and 95 deletions

View File

@@ -35,8 +35,10 @@
{% set row = session['session'] %}
<tr id="row-{{ row.Id() }}">
<td>
{% if app['session'].get('phrasea_session_id') != row.Id() %}
{% if app['session'].get('session_id') != row.Id() %}
<a href="{{ path('delete_session', {"id": row.Id()}) }}" title="{% trans %}End Activity{% endtrans %}" class="btn btn-inverse btn-small delete-session"><i class="icon-remove"> {% trans %}End Activity{% endtrans %}</i></a>
{% else %}
{% trans 'Current session' %}
{% endif %}
</td>
<td>