Skip to content

Commit a5007ae

Browse files
authored
Merge pull request #81 from Onemind-Services-LLC/feat/79-badges
Added badges in templates
2 parents d241755 + 694a623 commit a5007ae

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

netbox_acls/templates/netbox_acls/accesslist.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h5 class="card-header">Access List</h5>
5353
</tr>
5454
<tr>
5555
<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>
5757
</tr>
5858
<tr>
5959
<th scope="row">Rules</th>

netbox_acls/templates/netbox_acls/aclextendedrule.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ <h5 class="card-header">Details</h5>
7070
</tr>
7171
<tr>
7272
<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>
7474
</tr>
7575
</table>
7676
</div>

netbox_acls/templates/netbox_acls/aclinterfaceassignment.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ <h5 class="card-header">ACL Interface Assignment</h5>
6464
</tr>
6565
<tr>
6666
<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>
7068
</tr>
7169
</table>
7270
</div>

netbox_acls/templates/netbox_acls/aclstandardrule.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h5 class="card-header">Details</h5>
5252
</tr>
5353
<tr>
5454
<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>
5656
</tr>
5757
</table>
5858
</div>

0 commit comments

Comments
 (0)