File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
netbox_acls/templates/netbox_acls Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ <h5 class="card-header">Access List</h5>
53
53
</ tr >
54
54
< tr >
55
55
< th scope ="row "> Default Action</ th >
56
- < td > {{ object.get_default_action_display } }</ td >
56
+ < td > {% badge object.get_default_action_display bg_color=object.get_default_action_color % }</ td >
57
57
</ tr >
58
58
< tr >
59
59
< th scope ="row "> Rules</ th >
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ <h5 class="card-header">Details</h5>
70
70
</ tr >
71
71
< tr >
72
72
< th scope ="row "> Action</ th >
73
- < td > {{ object.get_action_display } }</ td >
73
+ < td > {% badge object.get_action_display bg_color=object.get_action_color % }</ td >
74
74
</ tr >
75
75
</ table >
76
76
</ div >
Original file line number Diff line number Diff line change @@ -64,9 +64,7 @@ <h5 class="card-header">ACL Interface Assignment</h5>
64
64
</ tr >
65
65
< tr >
66
66
< th scope ="row "> Direction</ th >
67
- < td >
68
- {{ object.direction|title }}
69
- </ td >
67
+ < td > {% badge object.get_direction_display bg_color=object.get_direction_color %}</ td >
70
68
</ tr >
71
69
</ table >
72
70
</ div >
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ <h5 class="card-header">Details</h5>
52
52
</ tr >
53
53
< tr >
54
54
< th scope ="row "> Action</ th >
55
- < td > {{ object.get_action_display } }</ td >
55
+ < td > {% badge object.get_action_display bg_color=object.get_action_color % }</ td >
56
56
</ tr >
57
57
</ table >
58
58
</ div >
You can’t perform that action at this time.
0 commit comments