Fix template references

This commit is contained in:
Joseph Kennedy 2017-08-03 03:49:44 -04:00
parent 01856f4990
commit 34c3c2e10e

View File

@ -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 %}