netbox: modify dashboard
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
1d3700e58e
commit
f7f4f7c6d8
1 changed files with 9 additions and 9 deletions
|
@ -39,7 +39,7 @@ PLUGINS_CONFIG = {
|
||||||
"netbox_topology_views": {"allow_coordinates_saving": True},
|
"netbox_topology_views": {"allow_coordinates_saving": True},
|
||||||
}
|
}
|
||||||
|
|
||||||
shortcuts = """
|
shortcuts = """\
|
||||||
| | |
|
| | |
|
||||||
|:---|---:|
|
|:---|---:|
|
||||||
| [Topology](/plugins/netbox_topology_views/topology/?filter_id=9) | [Racks](/dcim/rack-elevations/) |
|
| [Topology](/plugins/netbox_topology_views/topology/?filter_id=9) | [Racks](/dcim/rack-elevations/) |
|
||||||
|
@ -53,26 +53,26 @@ shortcuts = """
|
||||||
DEFAULT_DASHBOARD = [
|
DEFAULT_DASHBOARD = [
|
||||||
{
|
{
|
||||||
"widget": "extras.NoteWidget",
|
"widget": "extras.NoteWidget",
|
||||||
"width": 3,
|
"width": 4,
|
||||||
"height": 3,
|
"height": 3,
|
||||||
"title": "Shortcuts",
|
"title": "Shortcuts",
|
||||||
"color": "white",
|
"color": "black",
|
||||||
"config": {"content": shortcuts},
|
"config": {"content": shortcuts},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widget": "extras.NoteWidget",
|
"widget": "extras.BookmarksWidget",
|
||||||
"width": 9,
|
"width": 8,
|
||||||
"height": 3,
|
"height": 3,
|
||||||
"title": "TODO",
|
"title": "Bookmarks",
|
||||||
"color": "red",
|
"color": "black",
|
||||||
"config": {"content": "Nothing to do (yet)."},
|
"config": {"order_by": "name"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widget": "extras.ObjectListWidget",
|
"widget": "extras.ObjectListWidget",
|
||||||
"width": 12,
|
"width": 12,
|
||||||
"height": 5,
|
"height": 5,
|
||||||
"title": "Journal",
|
"title": "Journal",
|
||||||
"color": "orange",
|
"color": "black",
|
||||||
"config": {
|
"config": {
|
||||||
"model": "extras.journalentry",
|
"model": "extras.journalentry",
|
||||||
"page_size": 5,
|
"page_size": 5,
|
||||||
|
|
Loading…
Add table
Reference in a new issue