This website requires JavaScript.
Explore
Help
Sign In
mirror
/
netbox-community-netbox
Watch
1
Star
0
Fork
0
You've already forked netbox-community-netbox
mirror of
https://github.com/netbox-community/netbox.git
synced
2024-05-10 07:54:54 +00:00
Code
netbox-community-netbox
/
netbox
/
utilities
/
templates
/
builtins
/
badge.html
2 lines
96 B
HTML
Raw
Normal View
History
Unescape
Escape
Standardize on get_FOO_color() method for returning ChoiceField colors
2022-02-11 14:25:13 -05:00
{% if value or show_empty %}
<
span
class
=
"badge bg-{{ bg_color }}"
>
{{ value }}
<
/
span
>
{% endif %}
Copy Permalink