From be72869084d45e3472a0234535ebf5b90b55d94d Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 18 Jan 2024 10:20:13 -0800 Subject: [PATCH] 14728 review fixes --- netbox/core/tables/plugins.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 netbox/core/tables/plugins.py diff --git a/netbox/core/tables/plugins.py b/netbox/core/tables/plugins.py new file mode 100644 index 000000000..becac4efd --- /dev/null +++ b/netbox/core/tables/plugins.py @@ -0,0 +1,28 @@ +import django_tables2 as tables +from django.utils.translation import gettext_lazy as _ +from netbox.tables import BaseTable + +__all__ = ( + 'PluginTable', +) + + +class PluginTable(BaseTable): + verbose_name = tables.Column() + name = tables.Column() + author = tables.Column() + author_email = tables.Column() + description = tables.Column() + version = tables.Column() + + class Meta: + empty_text = _('No plugins found') + fields = ( + 'verbose_name', 'name', 'author', 'author_email', 'description', 'version', + ) + default_columns = ( + 'verbose_name', 'name', 'author', 'author_email', 'description', 'version', + ) + attrs = { + 'class': 'table table-hover object-list', + }