80adb29506
AngularIndexView of Horizon enables breadcrumbs for Angular-based panels. This change uses page title for current tag of breadcrumb by default. Magnum UI uses additional words "Container Infra -" for page title, so we should set "panel" argument for current tag of breadcrumb. This patch fixes this issue. Also, removes unnecessary url pattern. Change-Id: I0c67c5281140fc9ba76f007292e6634c567defa0
28 lines
983 B
Python
28 lines
983 B
Python
# Copyright 2015 Cisco Systems
|
|
#
|
|
# 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 import views
|
|
from magnum_ui.content.clusters import panel
|
|
|
|
|
|
title = _("Container Infra - Clusters")
|
|
page_title = panel.Clusters.name
|
|
urlpatterns = [
|
|
url(r'^$',
|
|
views.AngularIndexView.as_view(title=title, page_title=page_title),
|
|
name='index'),
|
|
]
|