Don't display switch representation in switch ports list template
Currently the "switch representation" (the table with all the ports of a switch displayed on the details of a switch) is written in the same template that displays a list of ports. But this very same template is also used to display the results in search. So if you search for a number (that will match with port numbers), or if you search for a room (the associated switch port will be matched) the representation makes no sense at all.
My idea is to use separated templates :
topologie/templates/topologie/aff_repr_switch.html
<table>
[nice colors and links]
</table>
topologie/templates/topologie/aff_ports.html
<table>
[list of ports]
<table>
topologie/templates/topologie/index_ports.html:
[...]
{% include "aff_repr_switch.html" with list_ports=list_ports %}
{% include "aff_ports.html" with list_ports=list_ports %}
[...]
search/templates/result.html
[...]
{% include "topologie/aff_ports.html" with list_ports=list_ports %}
[...]