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 @@ -43,10 +43,23 @@ <h5 class="card-header">Details</h5>
43
43
< td > {{ object.get_protocol_display|placeholder }}</ td >
44
44
</ tr >
45
45
< tr >
46
- < th scope ="row "> Source Prefix </ th >
46
+ < th scope ="row "> Source</ th >
47
47
< td >
48
48
{% if object.source_prefix %}
49
+ < span class ="badge text-bg-grey "> Prefix</ span >
49
50
< a href ="{{ object.source_prefix.get_absolute_url }} "> {{ object.source_prefix }}</ a >
51
+ {% elif object.source_iprange %}
52
+ < span class ="badge text-bg-grey "> IP-Range</ span >
53
+ < a href ="{{ object.source_iprange.get_absolute_url }} "> {{ object.source_iprange }}</ a >
54
+ {% elif object.source_ipaddress %}
55
+ < span class ="badge text-bg-grey "> IP-Address</ span >
56
+ < a href ="{{ object.source_ipaddress.get_absolute_url }} "> {{ object.source_ipaddress }}</ a >
57
+ {% elif object.source_aggregate %}
58
+ < span class ="badge text-bg-grey "> Aggregate</ span >
59
+ < a href ="{{ object.source_aggregate.get_absolute_url }} "> {{ object.source_aggregate }}</ a >
60
+ {% elif object.source_service %}
61
+ < span class ="badge text-bg-grey "> Service</ span >
62
+ < a href ="{{ object.source_service.get_absolute_url }} "> {{ object.source_service }}</ a >
50
63
{% else %}
51
64
{{ ''|placeholder }}
52
65
{% endif %}
You can’t perform that action at this time.
0 commit comments