mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-21 04:42:22 -06:00
Standardize on get_FOO_color() method for returning ChoiceField colors
This commit is contained in:
@@ -36,9 +36,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Kind</th>
|
||||
<td>
|
||||
<span class="badge bg-{{ object.get_kind_class }}">{{ object.get_kind_display }}</span>
|
||||
</td>
|
||||
<td>{% badge object.get_kind_display bg_color=object.get_kind_color %}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user