diff options
Diffstat (limited to 'moon_dashboard/moon/model')
-rw-r--r-- | moon_dashboard/moon/model/__init__.py | 0 | ||||
-rw-r--r-- | moon_dashboard/moon/model/panel.py | 23 | ||||
-rw-r--r-- | moon_dashboard/moon/model/templates/model/index.html | 16 | ||||
-rw-r--r-- | moon_dashboard/moon/model/tests.py | 19 | ||||
-rw-r--r-- | moon_dashboard/moon/model/urls.py | 20 | ||||
-rw-r--r-- | moon_dashboard/moon/model/views.py | 22 |
6 files changed, 0 insertions, 100 deletions
diff --git a/moon_dashboard/moon/model/__init__.py b/moon_dashboard/moon/model/__init__.py deleted file mode 100644 index e69de29b..00000000 --- a/moon_dashboard/moon/model/__init__.py +++ /dev/null diff --git a/moon_dashboard/moon/model/panel.py b/moon_dashboard/moon/model/panel.py deleted file mode 100644 index 9cb65ef0..00000000 --- a/moon_dashboard/moon/model/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 Model(horizon.Panel): - name = _("Models") - slug = "model" - - -dashboard.Moon.register(Model) diff --git a/moon_dashboard/moon/model/templates/model/index.html b/moon_dashboard/moon/model/templates/model/index.html deleted file mode 100644 index db372a02..00000000 --- a/moon_dashboard/moon/model/templates/model/index.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'base.html' %} -{% load i18n %} -{% block title %}{% trans "Models" %}{% endblock %} - -{% block page_header %} - {% include "horizon/common/_page_header.html" with title=_("Models") %} -{% endblock page_header %} - - - -{% block main %} - <ng-include - src="'{{ STATIC_URL }}moon/model/model.html'"> - </ng-include> -{% endblock %} - diff --git a/moon_dashboard/moon/model/tests.py b/moon_dashboard/moon/model/tests.py deleted file mode 100644 index ec988636..00000000 --- a/moon_dashboard/moon/model/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/model/urls.py b/moon_dashboard/moon/model/urls.py deleted file mode 100644 index ca9507fb..00000000 --- a/moon_dashboard/moon/model/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.model import views - - -urlpatterns = [ - url(r'^$', views.IndexView.as_view(), name='index'), -] diff --git a/moon_dashboard/moon/model/views.py b/moon_dashboard/moon/model/views.py deleted file mode 100644 index 73509537..00000000 --- a/moon_dashboard/moon/model/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/model/index.html' - - def get_data(self, request, context, *args, **kwargs): - # Add data to the context here... - return context |