Commit b2c87155 authored by edpibu's avatar edpibu Committed by chirac

Modified arguments passed to template

parent bc5b7c63
......@@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block title %}{% trans "Topology" %}{% endblock %}
{% block content %}
<h2>{% trans "Switch:"%} {{ nom_switch }}</h2>
<h2>{% trans "Switch:"%} {{ switch }}</h2>
<table class="table table-striped">
<thead>
<tr>
......@@ -40,9 +40,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</tr>
</thead>
<tr>
<td>{{ switch_bay }}</td>
<td>{{ switch_model }}</td>
<td>{{ switch_stack }}</td>
<td>{{ switch.switchbay }}</td>
<td>{{ switch.model }}</td>
<td>{{ switch.stack }}</td>
</tr>
</table>
<hr>
......
......@@ -189,10 +189,7 @@ def index_port(request, switch, switchid):
{
'port_list': port_list,
'id_switch': switchid,
'nom_switch': switch,
'switch_bay': switch.switchbay,
'switch_model': switch.model,
'switch_stack': switch.stack
'switch': switch
}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment