index.html 2.94 KB
Newer Older
1
{% extends 'search/sidebar.html' %}
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
{% 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 © 2017  Gabriel Détraz
Copyright © 2017  Goulven Kermarec
Copyright © 2017  Augustin Lemesle

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 %}

26
{% load bootstrap3 %}
27
{% load i18n %}
28

29
{% block title %}{% trans "Search results" %}{% endblock %}
30 31

{% block content %}
32
    {% if users %}
33
        <h2>{% trans "Results among users:" %}</h2>
34
        {% include 'users/aff_users.html' with users_list=users %}
35
    {% endif%}
36
    {% if clubs %}
37
        <h2>{% trans "Results among clubs:" %}</h2>
38
        {% include 'users/aff_clubs.html' with clubs_list=clubs %}
39
    {% endif%}
40
    {% if machines %}
41
        <h2>{% trans "Results among machines:" %}</h2>
42
        {% include 'machines/aff_machines.html' with machines_list=machines %}
43
    {% endif %}
44
    {% if factures %}
45
        <h2>{% trans "Results among invoices:" %}</h2>
46
        {% include 'cotisations/aff_cotisations.html' with facture_list=factures %}
47
    {% endif %}
48
    {% if whitelists %}
49
        <h2>{% trans "Results among whitelists:" %}</h2>
50
        {% include 'users/aff_whitelists.html' with white_list=whitelists %}
Dalahro's avatar
Dalahro committed
51
    {% endif %}
52
    {% if bans %}
53
        <h2>{% trans "Results among bans:" %}</h2>
54
        {% include 'users/aff_bans.html' with ban_list=bans %}
55
    {% endif %}
56
    {% if rooms %}
57
        <h2>{% trans "Results among rooms:" %}</h2>
58
        {% include 'topologie/aff_chambres.html' with room_list=rooms %}
59
    {% endif %}
60
    {% if ports %}
61 62
        <h2>{% trans "Results among ports:" %}</h2>
        {% include 'topologie/aff_port.html' with port_list=ports search=True %}
63
    {% endif %}
64
    {% if switches %}
65 66
        <h2>{% trans "Results among switches:" %}</h2>
        {% include 'topologie/aff_switch.html' with switch_list=switches %}
67
    {% endif %}
68
    {% if not users and not machines and not factures and not whitelists and not bans and not rooms and not ports and not switches %}
69
        <h3>{% trans "No result" %}</h3>
70
    {% else %}
71
        <h6>{% blocktrans %}(Only the first {{ max_result }} results are displayed in each category){% endblocktrans %}</h6>
72 73 74 75
    {% endif %}
    <br />
    <br />
    <br />
76
{% endblock %}
77