mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00: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