mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
#9416: cleanup & widget improvements
This commit is contained in:
@@ -19,6 +19,19 @@ WEBHOOK_EVENT_TYPES = {
|
||||
|
||||
# Dashboard
|
||||
DEFAULT_DASHBOARD = [
|
||||
{
|
||||
'widget': 'extras.ObjectCountsWidget',
|
||||
'width': 4,
|
||||
'height': 2,
|
||||
'title': 'Organization',
|
||||
'config': {
|
||||
'models': [
|
||||
'dcim.site',
|
||||
'tenancy.tenant',
|
||||
'tenancy.contact',
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
'widget': 'extras.ObjectCountsWidget',
|
||||
'width': 4,
|
||||
@@ -26,12 +39,53 @@ DEFAULT_DASHBOARD = [
|
||||
'title': 'IPAM',
|
||||
'config': {
|
||||
'models': [
|
||||
'ipam.vrf',
|
||||
'ipam.aggregate',
|
||||
'ipam.prefix',
|
||||
'ipam.iprange',
|
||||
'ipam.ipaddress',
|
||||
'ipam.vlan',
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
'widget': 'extras.NoteWidget',
|
||||
'width': 4,
|
||||
'height': 2,
|
||||
'title': 'Welcome!',
|
||||
'color': 'green',
|
||||
'config': {
|
||||
'content': (
|
||||
'This is your personal dashboard. Feel free to customize it by rearranging, resizing, or removing '
|
||||
'widgets. You can also add new widgets using the "add widget" button below. Any changes affect only '
|
||||
'_your_ dashboard, so feel free to experiment!'
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
'widget': 'extras.ObjectCountsWidget',
|
||||
'width': 4,
|
||||
'height': 2,
|
||||
'title': 'Circuits',
|
||||
'config': {
|
||||
'models': [
|
||||
'circuits.provider',
|
||||
'circuits.circuit',
|
||||
'circuits.providernetwork',
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
'widget': 'extras.RSSFeedWidget',
|
||||
'width': 4,
|
||||
'height': 4,
|
||||
'title': 'NetBox News',
|
||||
'config': {
|
||||
'feed_url': 'http://netbox.dev/rss/',
|
||||
'max_entries': 10,
|
||||
'cache_timeout': 14400,
|
||||
}
|
||||
},
|
||||
{
|
||||
'widget': 'extras.ObjectCountsWidget',
|
||||
'width': 4,
|
||||
@@ -41,25 +95,33 @@ DEFAULT_DASHBOARD = [
|
||||
'models': [
|
||||
'dcim.site',
|
||||
'dcim.rack',
|
||||
'dcim.devicetype',
|
||||
'dcim.device',
|
||||
]
|
||||
'dcim.cable',
|
||||
],
|
||||
}
|
||||
},
|
||||
{
|
||||
'widget': 'extras.NoteWidget',
|
||||
'widget': 'extras.ObjectCountsWidget',
|
||||
'width': 4,
|
||||
'height': 3,
|
||||
'height': 2,
|
||||
'title': 'Virtualization',
|
||||
'config': {
|
||||
'content': 'Welcome to **NetBox**!'
|
||||
'models': [
|
||||
'virtualization.cluster',
|
||||
'virtualization.virtualmachine',
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
'widget': 'extras.ObjectListWidget',
|
||||
'width': 12,
|
||||
'height': 6,
|
||||
'height': 5,
|
||||
'title': 'Change Log',
|
||||
'color': 'blue',
|
||||
'config': {
|
||||
'model': 'extras.objectchange',
|
||||
'page_size': 25,
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user