File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
netbox_acls/templates/netbox_acls Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,23 @@ <h5 class="card-header">Details</h5>
70
70
< td > {{ object.source_ports|join:", "|placeholder }}</ td >
71
71
</ tr >
72
72
< tr >
73
- < th scope ="row "> Destination Prefix </ th >
73
+ < th scope ="row "> Destination</ th >
74
74
< td >
75
75
{% if object.destination_prefix %}
76
+ < span class ="badge text-bg-grey "> Prefix</ span >
76
77
< a href ="{{ object.destination_prefix.get_absolute_url }} "> {{ object.destination_prefix }}</ a >
78
+ {% elif object.destination_iprange %}
79
+ < span class ="badge text-bg-grey "> IP-Range</ span >
80
+ < a href ="{{ object.destination_iprange.get_absolute_url }} "> {{ object.destination_iprange }}</ a >
81
+ {% elif object.destination_ipaddress %}
82
+ < span class ="badge text-bg-grey "> IP-Address</ span >
83
+ < a href ="{{ object.destination_ipaddress.get_absolute_url }} "> {{ object.destination_ipaddress }}</ a >
84
+ {% elif object.destination_aggregate %}
85
+ < span class ="badge text-bg-grey "> Aggregate</ span >
86
+ < a href ="{{ object.destination_aggregate.get_absolute_url }} "> {{ object.destination_aggregate }}</ a >
87
+ {% elif object.destination_service %}
88
+ < span class ="badge text-bg-grey "> Service</ span >
89
+ < a href ="{{ object.destination_service.get_absolute_url }} "> {{ object.destination_service }}</ a >
77
90
{% else %}
78
91
{{ ''|placeholder }}
79
92
{% endif %}
You can’t perform that action at this time.
0 commit comments