8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-28 01:43:46 +00:00

Modified arguments passed to template

This commit is contained in:
edpibu 2018-09-26 15:42:31 +02:00 committed by chirac
parent bc5b7c63be
commit b2c871556a
2 changed files with 5 additions and 8 deletions

View file

@ -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>

View file

@ -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
}
)