sidebar.html 3.06 KB
Newer Older
1
{% extends 'base.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 acl %}
27
{% load i18n %}
28 29

{% block sidebar %}
30
    {% can_view_all Machine %}
31
    <a class="list-group-item list-group-item-info" href="{% url 'machines:index' %}">
32
        <i class="fa fa-list-ul"></i>
erdnaxe's avatar
erdnaxe committed
33
        {% trans "Machines" %}
lhark's avatar
lhark committed
34
    </a>
35 36
    {% acl_end %}
    {% can_view_all MachineType %}
37
    <a class="list-group-item list-group-item-info" href="{% url 'machines:index-machinetype' %}">
38
        <i class="fa fa-list-ul"></i>
39
        {% trans "Machine types" %}
lhark's avatar
lhark committed
40
    </a>
41 42
    {% acl_end %}
    {% can_view_all Extension %}
43
    <a class="list-group-item list-group-item-info" href="{% url 'machines:index-extension' %}">
44
        <i class="fa fa-list-ul"></i>
erdnaxe's avatar
erdnaxe committed
45
        {% trans "Extensions and zones" %}
lhark's avatar
lhark committed
46
    </a>
47 48
    {% acl_end %}
    {% can_view_all IpType %}
49
    <a class="list-group-item list-group-item-info" href="{% url 'machines:index-iptype' %}">
50
        <i class="fa fa-list-ul"></i>
erdnaxe's avatar
erdnaxe committed
51
        {% trans "IP ranges" %}
lhark's avatar
lhark committed
52
    </a>
53 54
    {% acl_end %}
    {% can_view_all Vlan %}
55
    <a class="list-group-item list-group-item-info" href="{% url 'machines:index-vlan' %}">
56
        <i class="fa fa-list-ul"></i>
erdnaxe's avatar
erdnaxe committed
57
        {% trans "VLANs" %}
58
    </a>
59 60
    {% acl_end %}
    {% can_view_all Nas %}
61
    <a class="list-group-item list-group-item-info" href="{% url 'machines:index-nas' %}">
62
        <i class="fa fa-list-ul"></i>
erdnaxe's avatar
erdnaxe committed
63
        {% trans "NAS devices" %}
64
    </a>
65
    {% acl_end %}
66
    {% can_view_all machines.Service %}
67
    <a class="list-group-item list-group-item-info" href="{% url 'machines:index-service' %}">
68
        <i class="fa fa-list-ul"></i>
erdnaxe's avatar
erdnaxe committed
69
        {% trans "Services (DHCP, DNS, ...)" %}
70 71
    </a>
    {% acl_end %}
72
    {% can_view_all Role %}
73
    <a class="list-group-item list-group-item-info" href="{% url 'machines:index-role' %}">
74
        <i class="fa fa-list-ul"></i>
75
        {% trans "Server roles" %}
76 77
    </a>
    {% acl_end %}
78
    {% can_view_all OuverturePortList %}
79
    <a class="list-group-item list-group-item-info" href="{% url 'machines:index-portlist' %}">
80
        <i class="fa fa-list-ul"></i>
erdnaxe's avatar
erdnaxe committed
81
        {% trans "Ports openings" %}
82
    </a>
83
    {% acl_end %}
84
{% endblock %}
85