mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 08:23:46 +00:00
Added switch name to port search results, moved link to switch on switch name rather than port number
This commit is contained in:
parent
c7949ac684
commit
7e36cbc7ba
1 changed files with 8 additions and 4 deletions
|
@ -32,6 +32,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<tr>
|
<tr>
|
||||||
{% trans "Port" as tr_port %}
|
{% trans "Port" as tr_port %}
|
||||||
<th>{% include "buttons/sort.html" with prefix='port' col='port' text=tr_port %}</th>
|
<th>{% include "buttons/sort.html" with prefix='port' col='port' text=tr_port %}</th>
|
||||||
|
{% if search %}
|
||||||
|
<th>{% trans "Switch" %}</th>
|
||||||
|
{% endif %}
|
||||||
{% trans "Room" as tr_room %}
|
{% trans "Room" as tr_room %}
|
||||||
<th>{% include "buttons/sort.html" with prefix='port' col='room' text=tr_room %}</th>
|
<th>{% include "buttons/sort.html" with prefix='port' col='room' text=tr_room %}</th>
|
||||||
{% trans "Interface" as tr_interface %}
|
{% trans "Interface" as tr_interface %}
|
||||||
|
@ -46,10 +49,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>
|
||||||
{% if search %}
|
|
||||||
<td><a href="{% url 'topologie:index-port' switchid=port.switch.id %}">{{ port.port }}</a></td>
|
|
||||||
{% else %}
|
|
||||||
<td>{{ port.port }}</td>
|
<td>{{ port.port }}</td>
|
||||||
|
{% if search %}
|
||||||
|
<td>
|
||||||
|
<a href="{% url 'topologie:index-port' switchid=port.switch.id %}">{{ port.switch }}</a>
|
||||||
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>
|
<td>
|
||||||
{% if port.room %}
|
{% if port.room %}
|
||||||
|
|
Loading…
Reference in a new issue