Reorganize Admin dashboard menus
Admin dashboard shows too many panels now. This commit introduces panel groups for Admin dashboard as we do for Project dashboard. The new order of admin panel groups are: Compute, Volume, Network and System. Note that the slug of "System" panel group is not changed to avoid breaking horizon plugins which register panels to Admin System panel group. Implements blueprint reorganize-admin-dashboard Change-Id: I533e60f7cbfab2539b9f8aa7044f7234165f2518
This commit is contained in:
parent
b091fb8016
commit
c83a38f18e
@ -15,7 +15,7 @@ PANEL = 'overview'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'default'
|
||||||
# If set, it will update the default panel of the PANEL_DASHBOARD.
|
# If set, it will update the default panel of the PANEL_DASHBOARD.
|
||||||
DEFAULT_PANEL = 'overview'
|
DEFAULT_PANEL = 'overview'
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
# The slug of the panel group to be added to HORIZON_CONFIG. Required.
|
||||||
|
PANEL_GROUP = 'compute'
|
||||||
|
# The display name of the PANEL_GROUP. Required.
|
||||||
|
PANEL_GROUP_NAME = _('Compute')
|
||||||
|
# The slug of the dashboard the PANEL_GROUP associated with. Required.
|
||||||
|
PANEL_GROUP_DASHBOARD = 'admin'
|
@ -3,7 +3,7 @@ PANEL = 'hypervisors'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'compute'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = ('openstack_dashboard.dashboards.admin.'
|
ADD_PANEL = ('openstack_dashboard.dashboards.admin.'
|
@ -3,7 +3,7 @@ PANEL = 'aggregates'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'compute'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = 'openstack_dashboard.dashboards.admin.aggregates.panel.Aggregates'
|
ADD_PANEL = 'openstack_dashboard.dashboards.admin.aggregates.panel.Aggregates'
|
@ -3,7 +3,7 @@ PANEL = 'instances'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'compute'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = 'openstack_dashboard.dashboards.admin.instances.panel.Instances'
|
ADD_PANEL = 'openstack_dashboard.dashboards.admin.instances.panel.Instances'
|
@ -18,7 +18,7 @@ PANEL = 'flavors'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'compute'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = 'openstack_dashboard.dashboards.admin.flavors.panel.Flavors'
|
ADD_PANEL = 'openstack_dashboard.dashboards.admin.flavors.panel.Flavors'
|
@ -3,7 +3,7 @@ PANEL = 'images'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'compute'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = 'openstack_dashboard.dashboards.admin.images.panel.Images'
|
ADD_PANEL = 'openstack_dashboard.dashboards.admin.images.panel.Images'
|
@ -0,0 +1,8 @@
|
|||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
# The slug of the panel group to be added to HORIZON_CONFIG. Required.
|
||||||
|
PANEL_GROUP = 'volume'
|
||||||
|
# The display name of the PANEL_GROUP. Required.
|
||||||
|
PANEL_GROUP_NAME = _('Volume')
|
||||||
|
# The slug of the dashboard the PANEL_GROUP associated with. Required.
|
||||||
|
PANEL_GROUP_DASHBOARD = 'admin'
|
@ -3,7 +3,7 @@ PANEL = 'volumes'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'volume'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = 'openstack_dashboard.dashboards.admin.volumes.panel.Volumes'
|
ADD_PANEL = 'openstack_dashboard.dashboards.admin.volumes.panel.Volumes'
|
@ -3,7 +3,7 @@ PANEL = 'snapshots'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'volume'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = 'openstack_dashboard.dashboards.admin.snapshots.panel.Snapshots'
|
ADD_PANEL = 'openstack_dashboard.dashboards.admin.snapshots.panel.Snapshots'
|
@ -3,7 +3,7 @@ PANEL = 'volume_types'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'volume'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = \
|
ADD_PANEL = \
|
@ -0,0 +1,8 @@
|
|||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
# The slug of the panel group to be added to HORIZON_CONFIG. Required.
|
||||||
|
PANEL_GROUP = 'network'
|
||||||
|
# The display name of the PANEL_GROUP. Required.
|
||||||
|
PANEL_GROUP_NAME = _('Network')
|
||||||
|
# The slug of the dashboard the PANEL_GROUP associated with. Required.
|
||||||
|
PANEL_GROUP_DASHBOARD = 'admin'
|
@ -3,7 +3,7 @@ PANEL = 'networks'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'network'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = 'openstack_dashboard.dashboards.admin.networks.panel.Networks'
|
ADD_PANEL = 'openstack_dashboard.dashboards.admin.networks.panel.Networks'
|
@ -3,7 +3,7 @@ PANEL = 'routers'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'network'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = 'openstack_dashboard.dashboards.admin.routers.panel.Routers'
|
ADD_PANEL = 'openstack_dashboard.dashboards.admin.routers.panel.Routers'
|
@ -3,7 +3,7 @@ PANEL = 'floating_ips'
|
|||||||
# The slug of the dashboard the PANEL associated with. Required.
|
# The slug of the dashboard the PANEL associated with. Required.
|
||||||
PANEL_DASHBOARD = 'admin'
|
PANEL_DASHBOARD = 'admin'
|
||||||
# The slug of the panel group the PANEL is associated with.
|
# The slug of the panel group the PANEL is associated with.
|
||||||
PANEL_GROUP = 'admin'
|
PANEL_GROUP = 'network'
|
||||||
|
|
||||||
# Python panel class of the PANEL to be added.
|
# Python panel class of the PANEL to be added.
|
||||||
ADD_PANEL = \
|
ADD_PANEL = \
|
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Panel group is introduced in the Admin dashboard to organize admin panels
|
||||||
|
better. Panels in "System" group of Admin dashboard are now categorized
|
||||||
|
into four groups: "Compute", "Volume", "Network" and "System".
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
As a result of Admin dashboard reorganization, panel groups of many Admin
|
||||||
|
panels have been changed. Operators who customize Admin panels (for example,
|
||||||
|
disable some Admin panels) through ``enabled`` directory need to update
|
||||||
|
panel groups in ``enabled`` files. Horizon plugin developers and deployers
|
||||||
|
may also need to update panel configurations under ``enabled`` directory
|
||||||
|
to adapt the new Admin menus.
|
Loading…
Reference in New Issue
Block a user