Set reasonable name to browser title bar

Currently, when using anuglar table, the name of title bar on
browser is always "Horizon - OpenStack Dashboard".
It's not good at point of view of usability.
This patch fix it.

Change-Id: I73c5077058d4214b20116577759ea2d5b96742cc
Closes-Bug: #1647855
This commit is contained in:
Shu Muto 2016-12-26 13:11:16 +09:00
parent 53dee2cf61
commit c1dcaacda9
2 changed files with 10 additions and 4 deletions

View File

@ -13,10 +13,13 @@
# under the License.
from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from horizon.browsers import views
title = _("Container Infra - Cluster Templates")
urlpatterns = [
url(r'^[0-9a-f\-]{36}$', views.AngularIndexView.as_view(), name='detail'),
url(r'^$', views.AngularIndexView.as_view(), name='index'),
url(r'^[0-9a-f\-]{36}$', views.AngularIndexView.as_view(title=title),
name='detail'),
url(r'^$', views.AngularIndexView.as_view(title=title), name='index'),
]

View File

@ -13,10 +13,13 @@
# under the License.
from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from horizon.browsers import views
title = _("Container Infra - Clusters")
urlpatterns = [
url(r'^[0-9a-f\-]{36}$', views.AngularIndexView.as_view(), name='detail'),
url(r'^$', views.AngularIndexView.as_view(), name='index'),
url(r'^[0-9a-f\-]{36}$', views.AngularIndexView.as_view(title=title),
name='detail'),
url(r'^$', views.AngularIndexView.as_view(title=title), name='index'),
]