aboutsummaryrefslogtreecommitdiffstats
path: root/moon_dashboard/moon/policy
diff options
context:
space:
mode:
Diffstat (limited to 'moon_dashboard/moon/policy')
-rw-r--r--moon_dashboard/moon/policy/__init__.py0
-rw-r--r--moon_dashboard/moon/policy/panel.py23
-rw-r--r--moon_dashboard/moon/policy/templates/policy/index.html16
-rw-r--r--moon_dashboard/moon/policy/tests.py19
-rw-r--r--moon_dashboard/moon/policy/urls.py20
-rw-r--r--moon_dashboard/moon/policy/views.py22
6 files changed, 0 insertions, 100 deletions
diff --git a/moon_dashboard/moon/policy/__init__.py b/moon_dashboard/moon/policy/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/moon_dashboard/moon/policy/__init__.py
+++ /dev/null
diff --git a/moon_dashboard/moon/policy/panel.py b/moon_dashboard/moon/policy/panel.py
deleted file mode 100644
index 875a2d76..00000000
--- a/moon_dashboard/moon/policy/panel.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# 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
-from openstack_dashboard.dashboards.moon import dashboard
-
-class Policy(horizon.Panel):
- name = _("Policies")
- slug = "policy"
-
-
-dashboard.Moon.register(Policy)
diff --git a/moon_dashboard/moon/policy/templates/policy/index.html b/moon_dashboard/moon/policy/templates/policy/index.html
deleted file mode 100644
index 67cd9c3d..00000000
--- a/moon_dashboard/moon/policy/templates/policy/index.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends 'base.html' %}
-{% load i18n %}
-{% block title %}{% trans "Policies" %}{% endblock %}
-
-{% block page_header %}
- {% include "horizon/common/_page_header.html" with title=_("Policies") %}
-{% endblock page_header %}
-
-
-
-{% block main %}
- <ng-include
- src="'{{ STATIC_URL }}moon/policy/policy.html'">
- </ng-include>
-{% endblock %}
-
diff --git a/moon_dashboard/moon/policy/tests.py b/moon_dashboard/moon/policy/tests.py
deleted file mode 100644
index ec988636..00000000
--- a/moon_dashboard/moon/policy/tests.py
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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 horizon.test import helpers as test
-
-
-class MypanelTests(test.TestCase):
- # Unit tests for mypanel.
- def test_me(self):
- self.assertTrue(1 + 1 == 2)
diff --git a/moon_dashboard/moon/policy/urls.py b/moon_dashboard/moon/policy/urls.py
deleted file mode 100644
index 81bde0ca..00000000
--- a/moon_dashboard/moon/policy/urls.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# 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.conf.urls import url
-
-from openstack_dashboard.dashboards.moon.policy import views
-
-
-urlpatterns = [
- url(r'^$', views.IndexView.as_view(), name='index'),
-]
diff --git a/moon_dashboard/moon/policy/views.py b/moon_dashboard/moon/policy/views.py
deleted file mode 100644
index 826c833b..00000000
--- a/moon_dashboard/moon/policy/views.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# 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 horizon import views
-
-
-class IndexView(views.APIView):
- # A very simple class-based view...
- template_name = 'moon/policy/index.html'
-
- def get_data(self, request, context, *args, **kwargs):
- # Add data to the context here...
- return context