mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
Fixes #1542: Added cluster field to device view
This commit is contained in:
parent
0ea58ab268
commit
e2b2815545
@ -155,6 +155,18 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% if device.cluster %}
|
||||||
|
<tr>
|
||||||
|
<td>Cluster</td>
|
||||||
|
<td>
|
||||||
|
{% if device.cluster.group %}
|
||||||
|
<a href="{{ device.cluster.group.get_absolute_url }}">{{ device.cluster.group }}</a>
|
||||||
|
<i class="fa fa-angle-right"></i>
|
||||||
|
{% endif %}
|
||||||
|
<a href="{{ device.cluster.get_absolute_url }}">{{ device.cluster }}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% with device.get_custom_fields as custom_fields %}
|
{% with device.get_custom_fields as custom_fields %}
|
||||||
|
Loading…
Reference in New Issue
Block a user