Chad Roberts 5aa8b83bc9 Reorganizing cluster panels into tabs
First patch in reorganizing the sahara UI to be more
tab oriented rather than death by a thousand panels.
There are other patches that will complete the work,
 but this patch addresses the cluster-oriented panels
 by moving them under a single panel named Clusters.

Change-Id: Iae4bf4b5127fb29153ec5335070cde7d344e059e
Partial-Implements: bp reduce-number-of-panels
2016-02-15 14:05:35 -05:00

101 lines
5.4 KiB
Python

# 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 patterns
from django.conf.urls import url
import sahara_dashboard.content.data_processing.clusters.views as views
import sahara_dashboard.content.data_processing.clusters.data_image_registry. \
views as image_views
import sahara_dashboard.content.data_processing.clusters.nodegroup_templates. \
views as ngt_views
import sahara_dashboard.content.data_processing.clusters.cluster_templates. \
views as ct_views
import sahara_dashboard.content.data_processing.clusters.clusters. \
views as cluster_views
urlpatterns = patterns('',
url(r'^$', views.IndexView.as_view(),
name='index'),
url(r'^\?tab=cluster_tabs__data_image_registry_tab$',
views.IndexView.as_view(),
name='image-registry-tab'),
url(r'^\?tab=cluster_tabs__node_group_templates_tab$',
views.IndexView.as_view(),
name='nodegroup-templates-tab'),
url(r'^\?tab=cluster_tabs__clusters_templates_tab$',
views.IndexView.as_view(),
name='cluster-templates-tab'),
url(r'^\?tab=cluster_tabs__clusters_tab$',
views.IndexView.as_view(),
name='clusters-tab'),
url(r'^upload_file$',
ct_views.UploadFileView.as_view(),
name='upload_file'),
url(r'^create-cluster-template$',
ct_views.CreateClusterTemplateView.as_view(),
name='create-cluster-template'),
url(r'^create-nodegroup-template$',
ngt_views.CreateNodegroupTemplateView.as_view(),
name='create-nodegroup-template'),
url(r'^configure-cluster-template$',
ct_views.ConfigureClusterTemplateView.as_view(),
name='configure-cluster-template'),
url(r'^configure-nodegroup-template$',
ngt_views.ConfigureNodegroupTemplateView.as_view(),
name='configure-nodegroup-template'),
url(r'^cluster-template/(?P<template_id>[^/]+)$',
ct_views.ClusterTemplateDetailsView.as_view(),
name='ct-details'),
url(r'^node-group-template/(?P<template_id>[^/]+)$',
ngt_views.NodegroupTemplateDetailsView.as_view(),
name='details'),
url(r'^cluster-template/(?P<template_id>[^/]+)/copy$',
ct_views.CopyClusterTemplateView.as_view(),
name='ct-copy'),
url(r'^cluster-template/(?P<template_id>[^/]+)/edit$',
ct_views.EditClusterTemplateView.as_view(),
name='ct-edit'),
url(r'^node-group-template/'
'(?P<template_id>[^/]+)/copy$',
ngt_views.CopyNodegroupTemplateView.as_view(),
name='copy'),
url(r'^node-group-template/'
'(?P<template_id>[^/]+)/edit$',
ngt_views.EditNodegroupTemplateView.as_view(),
name='edit'),
url(r'^create-cluster$',
cluster_views.CreateClusterView.as_view(),
name='create-cluster'),
url(r'^configure-cluster$',
cluster_views.ConfigureClusterView.as_view(),
name='configure-cluster'),
url(r'^cluster/(?P<cluster_id>[^/]+)$',
cluster_views.ClusterDetailsView.as_view(),
name='cluster-details'),
url(r'^cluster/(?P<cluster_id>[^/]+)/events$',
cluster_views.ClusterEventsView.as_view(),
name='events'),
url(r'^cluster/(?P<cluster_id>[^/]+)/scale$',
cluster_views.ScaleClusterView.as_view(),
name='scale'),
url(r'^cluster/(?P<cluster_id>[^/]+)/update_shares$',
cluster_views.UpdateClusterSharesView.as_view(),
name='update-shares'),
url(r'^edit_tags/(?P<image_id>[^/]+)/$',
image_views.EditTagsView.as_view(),
name='edit_tags'),
url(r'^register/$',
image_views.RegisterImageView.as_view(),
name='register'))