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