diff options
| author | Akihiro Motoki <motoki@da.jp.nec.com> | 2017-03-11 22:59:27 +0000 |
|---|---|---|
| committer | Akihiro Motoki <motoki@da.jp.nec.com> | 2017-03-13 04:53:20 +0000 |
| commit | c83a38f18e25a9d12dde56355284d3fa2d11d110 (patch) | |
| tree | 13e24ab8a9e8b96df6ed00df5af69e81d7079e57 /openstack_dashboard/enabled | |
| parent | b091fb8016bcfa0c26228309fd06be0723db37dd (diff) | |
| download | horizon-c83a38f18e25a9d12dde56355284d3fa2d11d110.tar.gz | |
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
Diffstat (limited to 'openstack_dashboard/enabled')
| -rw-r--r-- | openstack_dashboard/enabled/_2010_admin_overview_panel.py (renamed from openstack_dashboard/enabled/_2020_admin_overview_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2110_admin_compute_panel_group.py | 8 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2120_admin_hypervisors_panel.py (renamed from openstack_dashboard/enabled/_2040_admin_hypervisors_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2130_admin_aggregates_panel.py (renamed from openstack_dashboard/enabled/_2050_admin_aggregates_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2140_admin_instances_panel.py (renamed from openstack_dashboard/enabled/_2060_admin_instances_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2150__admin_flavors_panel.py (renamed from openstack_dashboard/enabled/_2080_admin_flavors_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2160_admin_images_panel.py (renamed from openstack_dashboard/enabled/_2090_admin_images_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2210_admin_volume_panel_group.py | 8 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2220_admin_volumes_panel.py (renamed from openstack_dashboard/enabled/_2320_admin_volumes_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2230_admin_snapshots_panel.py (renamed from openstack_dashboard/enabled/_2330_admin_snapshots_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2240_admin_volume_types_panel.py (renamed from openstack_dashboard/enabled/_2340_admin_volume_types_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2300_admin_network_panel_group.py | 8 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2310_admin_networks_panel.py (renamed from openstack_dashboard/enabled/_2100_admin_networks_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2320_admin_routers_panel.py (renamed from openstack_dashboard/enabled/_2110_admin_routers_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2330_admin_floating_ips_panel.py (renamed from openstack_dashboard/enabled/_2111_admin_floating_ips_panel.py) | 2 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2810_admin_system_panel_group.py (renamed from openstack_dashboard/enabled/_2010_admin_system_panel_group.py) | 0 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2820_admin_defaults_panel.py (renamed from openstack_dashboard/enabled/_2120_admin_defaults_panel.py) | 0 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2830_admin_metadata_defs_panel.py (renamed from openstack_dashboard/enabled/_2130_admin_metadata_defs_panel.py) | 0 | ||||
| -rw-r--r-- | openstack_dashboard/enabled/_2840_admin_info_panel.py (renamed from openstack_dashboard/enabled/_2140_admin_info_panel.py) | 0 |
19 files changed, 36 insertions, 12 deletions
diff --git a/openstack_dashboard/enabled/_2020_admin_overview_panel.py b/openstack_dashboard/enabled/_2010_admin_overview_panel.py index 8538f2b3e..9f3c37512 100644 --- a/openstack_dashboard/enabled/_2020_admin_overview_panel.py +++ b/openstack_dashboard/enabled/_2010_admin_overview_panel.py @@ -15,7 +15,7 @@ PANEL = 'overview' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. DEFAULT_PANEL = 'overview' diff --git a/openstack_dashboard/enabled/_2110_admin_compute_panel_group.py b/openstack_dashboard/enabled/_2110_admin_compute_panel_group.py new file mode 100644 index 000000000..ce667c05c --- /dev/null +++ b/openstack_dashboard/enabled/_2110_admin_compute_panel_group.py @@ -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' diff --git a/openstack_dashboard/enabled/_2040_admin_hypervisors_panel.py b/openstack_dashboard/enabled/_2120_admin_hypervisors_panel.py index db9d689e3..75462adf7 100644 --- a/openstack_dashboard/enabled/_2040_admin_hypervisors_panel.py +++ b/openstack_dashboard/enabled/_2120_admin_hypervisors_panel.py @@ -3,7 +3,7 @@ PANEL = 'hypervisors' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = ('openstack_dashboard.dashboards.admin.' diff --git a/openstack_dashboard/enabled/_2050_admin_aggregates_panel.py b/openstack_dashboard/enabled/_2130_admin_aggregates_panel.py index c908304b9..09bc30447 100644 --- a/openstack_dashboard/enabled/_2050_admin_aggregates_panel.py +++ b/openstack_dashboard/enabled/_2130_admin_aggregates_panel.py @@ -3,7 +3,7 @@ PANEL = 'aggregates' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = 'openstack_dashboard.dashboards.admin.aggregates.panel.Aggregates' diff --git a/openstack_dashboard/enabled/_2060_admin_instances_panel.py b/openstack_dashboard/enabled/_2140_admin_instances_panel.py index 78a788390..9d78a7148 100644 --- a/openstack_dashboard/enabled/_2060_admin_instances_panel.py +++ b/openstack_dashboard/enabled/_2140_admin_instances_panel.py @@ -3,7 +3,7 @@ PANEL = 'instances' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = 'openstack_dashboard.dashboards.admin.instances.panel.Instances' diff --git a/openstack_dashboard/enabled/_2080_admin_flavors_panel.py b/openstack_dashboard/enabled/_2150__admin_flavors_panel.py index 9e4109767..21d53d95b 100644 --- a/openstack_dashboard/enabled/_2080_admin_flavors_panel.py +++ b/openstack_dashboard/enabled/_2150__admin_flavors_panel.py @@ -18,7 +18,7 @@ PANEL = 'flavors' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = 'openstack_dashboard.dashboards.admin.flavors.panel.Flavors' diff --git a/openstack_dashboard/enabled/_2090_admin_images_panel.py b/openstack_dashboard/enabled/_2160_admin_images_panel.py index 1340113ac..3d01320a2 100644 --- a/openstack_dashboard/enabled/_2090_admin_images_panel.py +++ b/openstack_dashboard/enabled/_2160_admin_images_panel.py @@ -3,7 +3,7 @@ PANEL = 'images' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = 'openstack_dashboard.dashboards.admin.images.panel.Images' diff --git a/openstack_dashboard/enabled/_2210_admin_volume_panel_group.py b/openstack_dashboard/enabled/_2210_admin_volume_panel_group.py new file mode 100644 index 000000000..2bb19ee36 --- /dev/null +++ b/openstack_dashboard/enabled/_2210_admin_volume_panel_group.py @@ -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' diff --git a/openstack_dashboard/enabled/_2320_admin_volumes_panel.py b/openstack_dashboard/enabled/_2220_admin_volumes_panel.py index 204762076..0d392f33a 100644 --- a/openstack_dashboard/enabled/_2320_admin_volumes_panel.py +++ b/openstack_dashboard/enabled/_2220_admin_volumes_panel.py @@ -3,7 +3,7 @@ PANEL = 'volumes' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = 'openstack_dashboard.dashboards.admin.volumes.panel.Volumes' diff --git a/openstack_dashboard/enabled/_2330_admin_snapshots_panel.py b/openstack_dashboard/enabled/_2230_admin_snapshots_panel.py index 54df7ea3e..e7099c3a4 100644 --- a/openstack_dashboard/enabled/_2330_admin_snapshots_panel.py +++ b/openstack_dashboard/enabled/_2230_admin_snapshots_panel.py @@ -3,7 +3,7 @@ PANEL = 'snapshots' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = 'openstack_dashboard.dashboards.admin.snapshots.panel.Snapshots' diff --git a/openstack_dashboard/enabled/_2340_admin_volume_types_panel.py b/openstack_dashboard/enabled/_2240_admin_volume_types_panel.py index 943b0fe58..5b18c1759 100644 --- a/openstack_dashboard/enabled/_2340_admin_volume_types_panel.py +++ b/openstack_dashboard/enabled/_2240_admin_volume_types_panel.py @@ -3,7 +3,7 @@ PANEL = 'volume_types' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = \ diff --git a/openstack_dashboard/enabled/_2300_admin_network_panel_group.py b/openstack_dashboard/enabled/_2300_admin_network_panel_group.py new file mode 100644 index 000000000..fa7de76a0 --- /dev/null +++ b/openstack_dashboard/enabled/_2300_admin_network_panel_group.py @@ -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' diff --git a/openstack_dashboard/enabled/_2100_admin_networks_panel.py b/openstack_dashboard/enabled/_2310_admin_networks_panel.py index d4323a06a..a2b38034b 100644 --- a/openstack_dashboard/enabled/_2100_admin_networks_panel.py +++ b/openstack_dashboard/enabled/_2310_admin_networks_panel.py @@ -3,7 +3,7 @@ PANEL = 'networks' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = 'openstack_dashboard.dashboards.admin.networks.panel.Networks' diff --git a/openstack_dashboard/enabled/_2110_admin_routers_panel.py b/openstack_dashboard/enabled/_2320_admin_routers_panel.py index 3c2c635b2..20dafe2d0 100644 --- a/openstack_dashboard/enabled/_2110_admin_routers_panel.py +++ b/openstack_dashboard/enabled/_2320_admin_routers_panel.py @@ -3,7 +3,7 @@ PANEL = 'routers' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = 'openstack_dashboard.dashboards.admin.routers.panel.Routers' diff --git a/openstack_dashboard/enabled/_2111_admin_floating_ips_panel.py b/openstack_dashboard/enabled/_2330_admin_floating_ips_panel.py index a3b03a4f4..a71c5c2d2 100644 --- a/openstack_dashboard/enabled/_2111_admin_floating_ips_panel.py +++ b/openstack_dashboard/enabled/_2330_admin_floating_ips_panel.py @@ -3,7 +3,7 @@ PANEL = 'floating_ips' # The slug of the dashboard the PANEL associated with. Required. PANEL_DASHBOARD = 'admin' # 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. ADD_PANEL = \ diff --git a/openstack_dashboard/enabled/_2010_admin_system_panel_group.py b/openstack_dashboard/enabled/_2810_admin_system_panel_group.py index b0f70158d..b0f70158d 100644 --- a/openstack_dashboard/enabled/_2010_admin_system_panel_group.py +++ b/openstack_dashboard/enabled/_2810_admin_system_panel_group.py diff --git a/openstack_dashboard/enabled/_2120_admin_defaults_panel.py b/openstack_dashboard/enabled/_2820_admin_defaults_panel.py index 92244c53c..92244c53c 100644 --- a/openstack_dashboard/enabled/_2120_admin_defaults_panel.py +++ b/openstack_dashboard/enabled/_2820_admin_defaults_panel.py diff --git a/openstack_dashboard/enabled/_2130_admin_metadata_defs_panel.py b/openstack_dashboard/enabled/_2830_admin_metadata_defs_panel.py index 0977ef4bd..0977ef4bd 100644 --- a/openstack_dashboard/enabled/_2130_admin_metadata_defs_panel.py +++ b/openstack_dashboard/enabled/_2830_admin_metadata_defs_panel.py diff --git a/openstack_dashboard/enabled/_2140_admin_info_panel.py b/openstack_dashboard/enabled/_2840_admin_info_panel.py index 470a4ac9a..470a4ac9a 100644 --- a/openstack_dashboard/enabled/_2140_admin_info_panel.py +++ b/openstack_dashboard/enabled/_2840_admin_info_panel.py |
