mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +00:00
Modified arguments passed to template
This commit is contained in:
parent
e23cf9d4a2
commit
f0f95096e7
2 changed files with 5 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue