8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00
re2o/logs/templates/logs/machine_history.html

77 lines
2.6 KiB
HTML
Raw Normal View History

2020-04-22 16:32:56 +00:00
{% extends 'logs/sidebar.html' %}
2020-04-22 16:17:06 +00:00
{% comment %}
2020-11-23 16:06:37 +00:00
Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il
2020-04-22 16:17:06 +00:00
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>
2020-04-22 16:41:59 +00:00
<th>{% trans "User" %}</th>
2020-04-22 16:43:13 +00:00
<th>{% trans "IPv4" %}</th>
2020-04-22 16:41:59 +00:00
<th>{% trans "MAC address" %}</th>
<th>{% trans "Start date" %}</th>
<th>{% trans "End date" %}</th>
<th>{% trans "Comment" %}</th>
2020-04-22 16:17:06 +00:00
</tr>
</thead>
{% for event in events %}
<tr>
2020-04-22 16:41:59 +00:00
<td>
<a href="{% url 'users:profil' userid=event.user.id %}" title=tr_view_the_profile>
2020-04-22 16:43:13 +00:00
{{ event.user }}
2020-04-22 16:41:59 +00:00
</a>
</td>
2020-04-22 16:17:06 +00:00
<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>
2020-04-22 16:17:06 +00:00
<td>{{ event.comment }}</td>
</tr>
{% endfor %}
</table>
{% include 'pagination.html' with list=events %}
2020-04-22 16:17:06 +00:00
{% else %}
<h3>{% trans "No result" %}</h3>
{% endif %}
<br />
<br />
<br />
{% endblock %}