mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-06 07:38:16 -06:00
Fix template references
This commit is contained in:
parent
01856f4990
commit
34c3c2e10e
@ -39,6 +39,12 @@ DEVICE_LINK = """
|
||||
</a>
|
||||
"""
|
||||
|
||||
INTERFACE_LINK = """
|
||||
<a href="{% url 'dcim:interface' pk=record.pk %}">
|
||||
{{ record.name|default:'<span class="label label-info">--</span>' }}
|
||||
</a>
|
||||
"""
|
||||
|
||||
REGION_ACTIONS = """
|
||||
{% if perms.dcim.change_region %}
|
||||
<a href="{% url 'dcim:region_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
||||
@ -97,6 +103,10 @@ DEVICE_STATUS = """
|
||||
<span class="label label-{{ record.get_status_class }}">{{ record.get_status_display }}</span>
|
||||
"""
|
||||
|
||||
INTERFACE_ENABLED = """
|
||||
<span class="label label-{{ record.get_status_class }}">{{ record.is_enabled }}</span>
|
||||
"""
|
||||
|
||||
DEVICE_PRIMARY_IP = """
|
||||
{{ record.primary_ip6.address.ip|default:"" }}
|
||||
{% if record.primary_ip6 and record.primary_ip4 %}<br />{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user