8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-03 18:12:24 +00:00

Merge branch 'add_link_port_search_results_from_dev' into 'dev'

Added link to the switch on switch ports search results

See merge request federez/re2o!304
This commit is contained in:
chirac 2018-09-23 22:05:21 +02:00
commit 774388fca6
2 changed files with 6 additions and 2 deletions

View file

@ -59,7 +59,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endif %} {% endif %}
{% if ports %} {% if ports %}
<h2>{% trans "Results among ports" %}</h2> <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 %} {% endif %}
{% if switches %} {% if switches %}
<h2>{% trans "Results among switches" %}</h2> <h2>{% trans "Results among switches" %}</h2>

View file

@ -46,7 +46,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</thead> </thead>
{% for port in port_list %} {% for port in port_list %}
<tr> <tr>
<td>{{ port.port }}</td> {% if search %}
<td><a href="{% url 'topologie:index-port' switchid=port.switch.id %}">{{ port.port }}</a></td>
{% else %}
<td>{{ port.port }}</td>
{% endif %}
<td> <td>
{% if port.room %} {% if port.room %}
{{ port.room }} {{ port.room }}