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 @@ -65,10 +65,23 @@ <h2 class="card-header">Details</h2>
65
65
< td > {{ object.source_ports|join:", "|placeholder }}</ td >
66
66
</ tr >
67
67
< tr >
68
- < th scope ="row "> Destination Prefix </ th >
68
+ < th scope ="row "> Destination</ th >
69
69
< td >
70
70
{% if object.destination_prefix %}
71
+ < span class ="badge text-bg-grey "> Prefix</ span >
71
72
< a href ="{{ object.destination_prefix.get_absolute_url }} "> {{ object.destination_prefix }}</ a >
73
+ {% elif object.destination_iprange %}
74
+ < span class ="badge text-bg-grey "> IP-Range</ span >
75
+ < a href ="{{ object.destination_iprange.get_absolute_url }} "> {{ object.destination_iprange }}</ a >
76
+ {% elif object.destination_ipaddress %}
77
+ < span class ="badge text-bg-grey "> IP-Address</ span >
78
+ < a href ="{{ object.destination_ipaddress.get_absolute_url }} "> {{ object.destination_ipaddress }}</ a >
79
+ {% elif object.destination_aggregate %}
80
+ < span class ="badge text-bg-grey "> Aggregate</ span >
81
+ < a href ="{{ object.destination_aggregate.get_absolute_url }} "> {{ object.destination_aggregate }}</ a >
82
+ {% elif object.destination_service %}
83
+ < span class ="badge text-bg-grey "> Service</ span >
84
+ < a href ="{{ object.destination_service.get_absolute_url }} "> {{ object.destination_service }}</ a >
72
85
{% else %}
73
86
{{ ''|placeholder }}
74
87
{% endif %}
You can’t perform that action at this time.
0 commit comments