mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-28 15:42:25 +00:00
76 lines
2.6 KiB
HTML
76 lines
2.6 KiB
HTML
{% extends 'logs/sidebar.html' %}
|
|
{% comment %}
|
|
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
|
|
se veut agnostique au réseau considéré, de manière à être installable en
|
|
quelques clics.
|
|
|
|
Copyright © 2020 Jean-Romain Garnier
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
{% endcomment %}
|
|
|
|
{% load bootstrap3 %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Search results" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if events %}
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans "User" %}</th>
|
|
<th>{% trans "IPv4" %}</th>
|
|
<th>{% trans "MAC address" %}</th>
|
|
<th>{% trans "Start date" %}</th>
|
|
<th>{% trans "End date" %}</th>
|
|
<th>{% trans "Comment" %}</th>
|
|
</tr>
|
|
</thead>
|
|
{% for event in events %}
|
|
<tr>
|
|
<td>
|
|
<a href="{% url 'users:profil' userid=event.user.id %}" title=tr_view_the_profile>
|
|
{{ event.user }}
|
|
</a>
|
|
</td>
|
|
<td>{{ event.ipv4 }}</td>
|
|
<td>{{ event.mac }}</td>
|
|
<td>
|
|
{% if event.start_date %}
|
|
{{ event.start_date }}
|
|
{% else %}
|
|
{% trans "Unknown" %}
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% if event.end_date %}
|
|
{{ event.end_date }}
|
|
{% else %}
|
|
{% trans "Now" %}
|
|
{% endif %}
|
|
</td>
|
|
<td>{{ event.comment }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% include 'pagination.html' with list=events %}
|
|
{% else %}
|
|
<h3>{% trans "No result" %}</h3>
|
|
{% endif %}
|
|
<br />
|
|
<br />
|
|
<br />
|
|
{% endblock %}
|