mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 03:13:12 +00:00
Modified arguments passed to template
This commit is contained in:
parent
bc5b7c63be
commit
b2c871556a
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 title %}{% trans "Topology" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>{% trans "Switch:"%} {{ nom_switch }}</h2>
|
<h2>{% trans "Switch:"%} {{ switch }}</h2>
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -40,9 +40,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ switch_bay }}</td>
|
<td>{{ switch.switchbay }}</td>
|
||||||
<td>{{ switch_model }}</td>
|
<td>{{ switch.model }}</td>
|
||||||
<td>{{ switch_stack }}</td>
|
<td>{{ switch.stack }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
|
@ -189,10 +189,7 @@ def index_port(request, switch, switchid):
|
||||||
{
|
{
|
||||||
'port_list': port_list,
|
'port_list': port_list,
|
||||||
'id_switch': switchid,
|
'id_switch': switchid,
|
||||||
'nom_switch': switch,
|
'switch': switch
|
||||||
'switch_bay': switch.switchbay,
|
|
||||||
'switch_model': switch.model,
|
|
||||||
'switch_stack': switch.stack
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue