mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +00:00
Added link to the switch on switch ports search results
This commit is contained in:
parent
0f45057f4c
commit
a73a18dd43
2 changed files with 6 additions and 2 deletions
|
@ -59,7 +59,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
{% endif %}
|
||||
{% if ports %}
|
||||
<h2>{% trans "Results among ports" %}</h2>
|
||||
{% include "topologie/aff_port.html" with port_list=ports %}
|
||||
{% include "topologie/aff_port.html" with port_list=ports search=True %}
|
||||
{% endif %}
|
||||
{% if switches %}
|
||||
<h2>{% trans "Results among switches" %}</h2>
|
||||
|
|
|
@ -46,7 +46,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
</thead>
|
||||
{% for port in port_list %}
|
||||
<tr>
|
||||
{% if search %}
|
||||
<td><a href="{% url 'topologie:index-port' switchid=port.switch.id %}">{{ port.port }}</a></td>
|
||||
{% else %}
|
||||
<td>{{ port.port }}</td>
|
||||
{% endif %}
|
||||
<td>
|
||||
{% if port.room %}
|
||||
{{ port.room }}
|
||||
|
|
Loading…
Reference in a new issue