From 394ebf11536726c48e8c3b0f165af98f8e66061f Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Tue, 27 Jun 2017 12:00:31 +0900 Subject: [PATCH] Cleanup ngdetails 'ngdetails' had removed 'project' from its URL as following: https://review.openstack.org/#/c/396800/ The change for URL is coded in 'openstack_dashboard/static/app/core/ core-constants.module.js'. Furthermore ngdetails is not linked from any django panels and doesn't have urls.py for '/project/ngdetails' originally. On the otherside Angularized panel has routes for details view as SPA. So 'ngdetails' doesn't need django panel for '/project/ngdetails/'. This patch removes django panel for '/project/ngdetails/' Change-Id: I1431c93eeabaa1778a35c0cbacd019b44822edc9 --- .../dashboards/project/ngdetails/__init__.py | 0 .../dashboards/project/ngdetails/panel.py | 25 ---------------- .../enabled/_1070_project_ng_details_panel.py | 30 ------------------- 3 files changed, 55 deletions(-) delete mode 100644 openstack_dashboard/dashboards/project/ngdetails/__init__.py delete mode 100644 openstack_dashboard/dashboards/project/ngdetails/panel.py delete mode 100644 openstack_dashboard/enabled/_1070_project_ng_details_panel.py diff --git a/openstack_dashboard/dashboards/project/ngdetails/__init__.py b/openstack_dashboard/dashboards/project/ngdetails/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openstack_dashboard/dashboards/project/ngdetails/panel.py b/openstack_dashboard/dashboards/project/ngdetails/panel.py deleted file mode 100644 index ca983032d2..0000000000 --- a/openstack_dashboard/dashboards/project/ngdetails/panel.py +++ /dev/null @@ -1,25 +0,0 @@ -# (c) Copyright 2015 Hewlett-Packard Development Company, L.P. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from django.utils.translation import ugettext_lazy as _ - -import horizon - - -class NGDetails(horizon.Panel): - name = _("Details") - slug = 'ngdetails' - - def nav(self, context): - return False diff --git a/openstack_dashboard/enabled/_1070_project_ng_details_panel.py b/openstack_dashboard/enabled/_1070_project_ng_details_panel.py deleted file mode 100644 index ed4fad8eaa..0000000000 --- a/openstack_dashboard/enabled/_1070_project_ng_details_panel.py +++ /dev/null @@ -1,30 +0,0 @@ -# (c) Copyright 2015 Hewlett-Packard Development Company, L.P. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -# The slug of the dashboard the PANEL associated with. Required. -PANEL_DASHBOARD = 'project' - -# The slug of the panel group the PANEL is associated with. -# If you want the panel to show up without a panel group, -# use the panel group "default". -PANEL_GROUP = 'compute' - -# The slug of the panel to be added to HORIZON_CONFIG. Required. -PANEL = 'ngdetails' - -# If set to True, this settings file will not be added to the settings. -DISABLED = False - -# Python panel class of the PANEL to be added. -ADD_PANEL = 'openstack_dashboard.dashboards.project.ngdetails.panel.NGDetails'