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.
70 lines
2.4 KiB
70 lines
2.4 KiB
|
13 years ago
|
{% extends "ovpnconsole/base.html" %}
|
||
|
|
|
||
|
|
{% block title %}Historiques de connexions{% endblock %}
|
||
|
|
|
||
|
|
{% block menu_top %}
|
||
|
|
{% if user.is_authenticated %}
|
||
|
|
<li><a href="{% url admin_page %}">Administration</a></li>
|
||
|
|
<li><a href="{% url logout %}">Deconnexion</a></li>
|
||
|
|
{% else %}
|
||
|
|
<li><a href="{% url login %}">Connexion</a></li>
|
||
|
|
{% endif %}
|
||
|
|
{% endblock %}
|
||
|
|
{% block navigation %}
|
||
|
|
<i>{{ object.ovpnauthority.ovpnsite }} : {{ object.ovpnauthority }} : {{ object.name }}</i>
|
||
|
|
{% endblock %}
|
||
|
|
|
||
|
|
{% block menu %}
|
||
|
|
{% if is_paginated %}
|
||
|
|
{% if has_next %}
|
||
|
|
<a href="{% url ovpnserver_connhist object.id %}?page={{next}}"><img src="{{ MEDIA_URL }}images/next.png" /> Page Suivante</a>
|
||
|
|
{% endif %}
|
||
|
|
{% if has_previous %}
|
||
|
|
<a href="{% url ovpnserver_connhist object.id %}?page={{previous}}"><img src="{{ MEDIA_URL }}images/previous.png" /> Page Précedente</a>
|
||
|
|
{% endif %}
|
||
|
|
<a href="{% url ovpnserver_connhist object.id %}?page=1"><img src="{{ MEDIA_URL }}images/first.png" /> Première Page</a>
|
||
|
|
<a href="{% url ovpnserver_connhist object.id%}?page={{ pages }}"><img src="{{ MEDIA_URL }}images/last.png" /> Dernière Page</a>
|
||
|
|
{% endif %}
|
||
|
|
<a href="{% url ovpnserver_details object.id%}"><img src="{{ MEDIA_URL }}images/back.png" /> Retour</a>
|
||
|
|
{% endblock %}
|
||
|
|
|
||
|
|
{% block contenu %}
|
||
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/search.js"> </script>
|
||
|
|
<h2>Historiques de connexions</h2>
|
||
|
|
<form name="searchForm" id="searchForm">
|
||
|
|
Filtre : <input type="text" onkeyup="search_user_hist();" name="inputText" id="inputText" /> (login, ip)
|
||
|
|
</form>
|
||
|
|
<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 object.get_connhist %}
|
||
|
|
{% endfor %}
|
||
|
|
{% for line in object_list %}
|
||
|
|
<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>
|
||
|
|
<p> page {{ page }} / {{ pages }}</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
{% endblock %}
|