mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Use placeholders for false values to increase legibility of the plugins table
This commit is contained in:
parent
f9347122c2
commit
749c1a1600
@ -49,6 +49,7 @@ class CatalogPluginTable(BaseTable):
|
|||||||
verbose_name=_('Author')
|
verbose_name=_('Author')
|
||||||
)
|
)
|
||||||
is_local = columns.BooleanColumn(
|
is_local = columns.BooleanColumn(
|
||||||
|
false_mark=None,
|
||||||
verbose_name=_('Local')
|
verbose_name=_('Local')
|
||||||
)
|
)
|
||||||
is_installed = columns.TemplateColumn(
|
is_installed = columns.TemplateColumn(
|
||||||
@ -56,6 +57,7 @@ class CatalogPluginTable(BaseTable):
|
|||||||
template_code=PLUGIN_IS_INSTALLED
|
template_code=PLUGIN_IS_INSTALLED
|
||||||
)
|
)
|
||||||
is_certified = columns.BooleanColumn(
|
is_certified = columns.BooleanColumn(
|
||||||
|
false_mark=None,
|
||||||
verbose_name=_('Certified')
|
verbose_name=_('Certified')
|
||||||
)
|
)
|
||||||
created_at = columns.DateTimeColumn(
|
created_at = columns.DateTimeColumn(
|
||||||
|
@ -23,6 +23,6 @@ PLUGIN_IS_INSTALLED = """
|
|||||||
<span class="text-danger"><i class="mdi mdi-alert" data-bs-toggle="tooltip" title="Could not load plugin. Version may be incompatible. Min version: {{ record.netbox_min_version }}, max version: {{ record.netbox_max_version }}"></i></span>
|
<span class="text-danger"><i class="mdi mdi-alert" data-bs-toggle="tooltip" title="Could not load plugin. Version may be incompatible. Min version: {{ record.netbox_min_version }}, max version: {{ record.netbox_max_version }}"></i></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="text-danger"><i class="mdi mdi-close-thick"></i></span>
|
<span class="text-muted">—</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user