mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-09 13:22:18 -06:00
Clean up presentation of port mappings under front/rear port detail views
This commit is contained in:
@@ -62,16 +62,27 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col col-12 col-md-6">
|
<div class="col col-12 col-md-6">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">{% trans "Rear Ports" %}</h2>
|
<h2 class="card-header">{% trans "Port Mappings" %}</h2>
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
{% for mapping in rear_port_mappings %}
|
{% if rear_port_mappings %}
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ mapping.front_port_position }}</td>
|
<th>{% trans "Position" %}</th>
|
||||||
<td>{{ mapping.rear_port|linkify }}</td>
|
<th>{% trans "Rear Port" %}</th>
|
||||||
<td>{{ mapping.rear_port_position }}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
</thead>
|
||||||
</table>
|
{% endif %}
|
||||||
|
{% for mapping in rear_port_mappings %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ mapping.front_port_position }}</td>
|
||||||
|
<td>
|
||||||
|
<a href="{{ mapping.rear_port.get_absolute_url }}">{{ mapping.rear_port }}:{{ mapping.rear_port_position }}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% empty %}
|
||||||
|
{% trans "No mappings defined" %}
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">{% trans "Connection" %}</h2>
|
<h2 class="card-header">{% trans "Connection" %}</h2>
|
||||||
|
|||||||
@@ -62,16 +62,27 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col col-12 col-md-6">
|
<div class="col col-12 col-md-6">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">{% trans "Rear Ports" %}</h2>
|
<h2 class="card-header">{% trans "Port Mappings" %}</h2>
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
{% for mapping in front_port_mappings %}
|
{% if front_port_mappings %}
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ mapping.rear_port_position }}</td>
|
<th>{% trans "Position" %}</th>
|
||||||
<td>{{ mapping.front_port|linkify }}</td>
|
<th>{% trans "Front Port" %}</th>
|
||||||
<td>{{ mapping.front_port_position }}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
</thead>
|
||||||
</table>
|
{% endif %}
|
||||||
|
{% for mapping in front_port_mappings %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ mapping.rear_port_position }}</td>
|
||||||
|
<td>
|
||||||
|
<a href="{{ mapping.front_port.get_absolute_url }}">{{ mapping.front_port }}:{{ mapping.front_port_position }}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% empty %}
|
||||||
|
{% trans "No mappings defined" %}
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">{% trans "Connection" %}</h2>
|
<h2 class="card-header">{% trans "Connection" %}</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user