Ejemplo n.º 1
0
#         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 django.utils.translation import ugettext_lazy as _

from horizon.browsers.views import AngularIndexView

from openstack_dashboard.dashboards.identity.roles import views
from openstack_dashboard.utils import settings as setting_utils

if setting_utils.get_dict_config('ANGULAR_FEATURES', 'roles_panel'):
    # New angular panel
    title = _('Roles')
    urlpatterns = [
        url(r'^$', AngularIndexView.as_view(title=title), name='index'),
    ]
else:
    urlpatterns = [
        url(r'^$', views.IndexView.as_view(), name='index'),
        url(r'^(?P<role_id>[^/]+)/update/$',
            views.UpdateView.as_view(),
            name='update'),
        url(r'^create/$', views.CreateView.as_view(), name='create'),
    ]
Ejemplo n.º 2
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 horizon.browsers.views import AngularIndexView


urlpatterns = [
    url(r'^$', AngularIndexView.as_view(title='Notifications'), name='index'),
]
Ejemplo n.º 3
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.conf.urls import url
from horizon.browsers.views import AngularIndexView

urlpatterns = [
    url('', AngularIndexView.as_view(), name='index'),
]
Ejemplo n.º 4
0
#    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 import settings
from django.conf.urls import include
from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from horizon.browsers.views import AngularIndexView
from openstack_dashboard.dashboards.project.images.images \
    import urls as image_urls
from openstack_dashboard.dashboards.project.images.snapshots \
    import urls as snapshot_urls
from openstack_dashboard.dashboards.project.images import views


if settings.ANGULAR_FEATURES['images_panel']:
    title = _("Images")
    # New angular images
    urlpatterns = [
        url(r'^$', AngularIndexView.as_view(title=title), name='index'),
        url(r'', include(image_urls, namespace='images')),
        url(r'', include(snapshot_urls, namespace='snapshots')),
    ]
else:
    urlpatterns = [
        url(r'^$', views.IndexView.as_view(), name='index'),
        url(r'', include(image_urls, namespace='images')),
        url(r'', include(snapshot_urls, namespace='snapshots')),
    ]
Ejemplo n.º 5
0
#         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 import settings
from django.conf.urls import url
from horizon.browsers.views import AngularIndexView
from openstack_dashboard.dashboards.admin.flavors import views

if settings.ANGULAR_FEATURES['flavors_panel']:
    # New angular panel
    urlpatterns = [
        url(r'^$', AngularIndexView.as_view(), name='index'),
        url(r'^create/$', AngularIndexView.as_view(), name='create'),
        url(r'^(?P<id>[^/]+)/update/$',
            AngularIndexView.as_view(),
            name='index'),
    ]
else:
    urlpatterns = [
        url(r'^$', views.IndexView.as_view(), name='index'),
        url(r'^create/$', views.CreateView.as_view(), name='create'),
        url(r'^(?P<id>[^/]+)/update/$',
            views.UpdateView.as_view(),
            name='update'),
    ]
Ejemplo n.º 6
0
#    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 import settings
from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _

from horizon.browsers.views import AngularIndexView
from openstack_dashboard.dashboards.admin.flavors import views


if settings.ANGULAR_FEATURES['flavors_panel']:
    title = _("Flavors")
    # New angular panel
    urlpatterns = [
        url(r'^$', AngularIndexView.as_view(title=title), name='index'),
        url(r'^create/$', AngularIndexView.as_view(title=title),
            name='create'),
        url(r'^(?P<id>[^/]+)/update/$', AngularIndexView.as_view(title=title),
            name='index'),
    ]
else:
    urlpatterns = [
        url(r'^$', views.IndexView.as_view(), name='index'),
        url(r'^create/$', views.CreateView.as_view(), name='create'),
        url(r'^(?P<id>[^/]+)/update/$',
            views.UpdateView.as_view(), name='update'),
    ]
Ejemplo n.º 7
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 import settings
from django.urls import re_path
from django.utils.translation import ugettext_lazy as _

from horizon.browsers.views import AngularIndexView

from senlin_dashboard.cluster.clusters import views as legacyViews

if settings.ANGULAR_FEATURES.get('clusters_panel', True):
    title = _("Clusters")
    urlpatterns = [
        re_path('', AngularIndexView.as_view(title=title), name='index'),
    ]
else:
    urlpatterns = [
        re_path(r'^$', legacyViews.IndexView.as_view(), name='index'),
        re_path(r'^create/$', legacyViews.CreateView.as_view(), name='create'),
        re_path(r'^(?P<cluster_id>[^/]+)/$',
                legacyViews.DetailView.as_view(),
                name='detail'),
        re_path(r'^(?P<cluster_id>[^/]+)/manage_policies/$',
                legacyViews.ManagePoliciesView.as_view(),
                name='manage_policies'),
    ]
Ejemplo n.º 8
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 import settings
from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from horizon.browsers.views import AngularIndexView
from openstack_dashboard.dashboards.compute_user.images2.images import views

if settings.ANGULAR_FEATURES['images_panel']:
    title = _("Images")
    urlpatterns = [
        url(r'^(?P<image_id>[^/]+)/$',
            AngularIndexView.as_view(title=title),
            name='detail'),
    ]
else:
    urlpatterns = [
        url(r'^create/$', views.CreateView.as_view(), name='create'),
        url(r'^(?P<image_id>[^/]+)/update/$',
            views.UpdateView.as_view(),
            name='update'),
        url(r'^(?P<image_id>[^/]+)/$',
            views.DetailView.as_view(),
            name='detail'),
    ]
Ejemplo n.º 9
0
# Copyright 2017 Ericsson
#
#    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 django.utils.translation import ugettext_lazy as _

from horizon.browsers.views import AngularIndexView


title = _("Trunks")
urlpatterns = [
    url(r'^$', AngularIndexView.as_view(title=title), name='index'),
    url(r'^(?P<trunk_id>[^/]+)/$', AngularIndexView.as_view(title=title),
        name='detail'),
]
Ejemplo n.º 10
0
#         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 import settings
from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _

from horizon.browsers.views import AngularIndexView
from openstack_dashboard.dashboards.project.images.images import views


if settings.ANGULAR_FEATURES['images_panel']:
    title = _("Images")
    urlpatterns = [
        url(r'^(?P<image_id>[^/]+)/$', AngularIndexView.as_view(title=title),
            name='detail'),
    ]
else:
    urlpatterns = [
        url(r'^create/$', views.CreateView.as_view(), name='create'),
        url(r'^(?P<image_id>[^/]+)/update/$',
            views.UpdateView.as_view(), name='update'),
        url(r'^(?P<image_id>[^/]+)/$', views.DetailView.as_view(),
            name='detail'),
    ]
Ejemplo n.º 11
0
#
#         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 import settings
from django.conf.urls import url
from horizon.browsers.views import AngularIndexView
from openstack_dashboard.dashboards.project.images.images import views

if settings.ANGULAR_FEATURES['images_panel']:
    urlpatterns = [
        url(r'^(?P<image_id>[^/]+)/$',
            AngularIndexView.as_view(),
            name='detail'),
    ]
else:
    urlpatterns = [
        url(r'^create/$', views.CreateView.as_view(), name='create'),
        url(r'^(?P<image_id>[^/]+)/update/$',
            views.UpdateView.as_view(),
            name='update'),
        url(r'^(?P<image_id>[^/]+)/$',
            views.DetailView.as_view(),
            name='detail'),
    ]