index.html 2.36 KB
Newer Older
1
{% extends 'topologie/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 %}

Dalahro's avatar
Dalahro committed
26
{% load bootstrap3 %}
27
{% load acl %}
28
{% load i18n %}
Dalahro's avatar
Dalahro committed
29

30
{% block title %}{% trans "Topology" %}{% endblock %}
Dalahro's avatar
Dalahro committed
31 32

{% block content %}
grisel-davy's avatar
grisel-davy committed
33

Maël Kervella's avatar
Maël Kervella committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
<script type="text/javascript" src="/static/js/jquery.ez-plus.js"></script>
<script>
function toggle_graph() {
    $("#collImg").collapse('toggle');

    ezImg = $("#zoom_01").data("ezPlus");
    if (ezImg) {
        ezImg.destroy();
	$("#zoom_01").removeData("ezPlus");
    } else {
        $("#zoom_01").ezPlus({
            scrollZoom: true,
            zoomType: 'inner',
            cursor: 'crosshair'
        });
    }
}
</script>


<button class="btn btn-primary" type="button" onclick="toggle_graph()">
55
{% trans "Topology of the switches" %}
grisel-davy's avatar
grisel-davy committed
56 57 58 59 60 61
</button>

<a target="_blank" href="/media/images/switchs.png" class="btn btn-primary">
  <span class="fa fa-arrows-alt"></span> 
</a>

Maël Kervella's avatar
Maël Kervella committed
62
<div id="collImg" class="collapse" aria-expanded="false">
grisel-davy's avatar
grisel-davy committed
63 64
<img id="zoom_01" src="/media/images/switchs.png" href="/media/images/switchs.png" target="_blank" data-zoom-image="/media/images/switchs.png" width=100% />
</div>
65

66
<h2>{% trans "Switches" %}</h2>
67
{% can_create Switch %}
68
<a class="btn btn-primary btn-sm" role="button" href="{% url 'topologie:new-switch' %}"><i class="fa fa-plus"></i>{% trans " Add a switch" %}</a>
Gabriel Detraz's avatar
Gabriel Detraz committed
69
<hr>
70
{% acl_end %}
71
    {% include 'topologie/aff_switch.html' with switch_list=switch_list %}
Dalahro's avatar
Dalahro committed
72 73 74
    <br />
    <br />
    <br />
75

Dalahro's avatar
Dalahro committed
76
{% endblock %}
77