From 344aac09aededa388458cb3a6a133de657f55861 Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Mon, 26 Dec 2016 13:37:39 +0900 Subject: [PATCH] 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: I3e6e69f26d5d967bf402f8f5bc9f12d92c2edb87 Closes-Bug: #1647855 --- zun_ui/content/container/containers/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zun_ui/content/container/containers/urls.py b/zun_ui/content/container/containers/urls.py index 9aad73c..5f11879 100644 --- a/zun_ui/content/container/containers/urls.py +++ b/zun_ui/content/container/containers/urls.py @@ -11,8 +11,10 @@ # under the License. from django.conf.urls import url +from django.utils.translation import ugettext_lazy as _ from horizon.browsers import views +title = _("Containers") urlpatterns = [ - url('', views.AngularIndexView.as_view(), name='index'), + url('', views.AngularIndexView.as_view(title=title), name='index'), ]