diff --git a/topologie/templates/topologie/index_p.html b/topologie/templates/topologie/index_p.html index aabb9e21..f44a48c6 100644 --- a/topologie/templates/topologie/index_p.html +++ b/topologie/templates/topologie/index_p.html @@ -30,7 +30,22 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Topology" %}{% endblock %} {% block content %} -

{% trans "Switch:"%} {{ nom_switch }}

+

{% trans "Switch:"%} {{ switch }}

+ + + + + + + + + + + + + +
{% trans "Switch bay" %}{% trans "Switch model" %}{% trans "Stack" %}
{{ switch.switchbay }}{{ switch.model }}{{ switch.stack }}
+
{% trans " Edit" %} {% can_create Port %} {% trans " Add a port" %} diff --git a/topologie/views.py b/topologie/views.py index 1e8bfee4..3d8a3044 100644 --- a/topologie/views.py +++ b/topologie/views.py @@ -189,7 +189,7 @@ def index_port(request, switch, switchid): { 'port_list': port_list, 'id_switch': switchid, - 'nom_switch': switch + 'switch': switch } )