mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 21:18:16 -06:00
14728 review fixes
This commit is contained in:
parent
98e04071c8
commit
be72869084
28
netbox/core/tables/plugins.py
Normal file
28
netbox/core/tables/plugins.py
Normal file
@ -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',
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user