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.
47 lines
1.6 KiB
47 lines
1.6 KiB
|
13 years ago
|
{% if results %}
|
||
|
|
{% ifequal search 'server_connhist' %}
|
||
|
|
<div id="element_list">
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th>Utilisateur</th>
|
||
|
|
<th>IP réelle</th>
|
||
|
|
<th>IP VPN</th>
|
||
|
|
<th>Connection</th>
|
||
|
|
<th>Deconnection</th>
|
||
|
|
<th>state</th>
|
||
|
|
</tr>
|
||
|
|
{% for line in results %}
|
||
|
|
<tr>
|
||
|
|
<td>{{ line.user_name }}</td>
|
||
|
|
<td>{{ line.real_ip }}</td>
|
||
|
|
<td>{{ line.virt_ip }}</td>
|
||
|
|
<td>{{ line.conn_date }}</td>
|
||
|
|
<td>{{ line.disc_date }}</td>
|
||
|
|
{% ifequal line.state 'c' %}
|
||
|
|
<td class="status_ok">
|
||
|
|
{% else %}
|
||
|
|
<td class="status_nok">
|
||
|
|
{% endifequal %}
|
||
|
|
{{ line.get_state_display }}</td>
|
||
|
|
</tr>
|
||
|
|
{% endfor %}
|
||
|
|
</table>
|
||
|
|
{% endifequal %}
|
||
|
|
{% ifequal search 'user' %}
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th>Utilisateur</th>
|
||
|
|
<th>Authorité</th>
|
||
|
|
<th>Serveur</th>
|
||
|
|
</tr>
|
||
|
|
{% for result in results %}
|
||
|
|
<tr>
|
||
|
|
<td><a href="{% url ovpnuser_detail result.id %}">{{ result.name }}</a> </td>
|
||
|
|
<td><a href="{% url ovpnauthority_details result.ovpnserver.ovpnauthority.id %}">{{ result.ovpnserver.ovpnauthority.name }}</a> </td>
|
||
|
|
<td><a href="{% url ovpnserver_details result.ovpnserver.id %}">{{ result.ovpnserver.name }}</a> </td>
|
||
|
|
</tr>
|
||
|
|
{% endfor %}
|
||
|
|
</table>
|
||
|
|
{% endifequal %}
|
||
|
|
{% endif %}
|