Commit 774388fc authored by chirac's avatar chirac

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
parents 38e1cabd 98facee5
......@@ -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>
<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>
{% if port.room %}
{{ port.room }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment