diff --git a/horizon/browsers/views.py b/horizon/browsers/views.py index f4b0f92355..9d4bf769dc 100644 --- a/horizon/browsers/views.py +++ b/horizon/browsers/views.py @@ -60,10 +60,26 @@ class ResourceBrowserView(MultiTableView): class AngularIndexView(generic.TemplateView): + '''View for Angularized panel + + title: to display title for browser window or tab. + page_title: to display current position in breadcrumb. + + Sample usage is as follows. + from horizon.browsers import views + views.AngularIndexView.as_view(title="Images") + views.AngularIndexView.as_view(title="Browser Title", + page_title="Page Title") + ''' template_name = 'angular.html' title = _("Horizon") + page_title = None def get_context_data(self, **kwargs): context = super(AngularIndexView, self).get_context_data(**kwargs) context["title"] = self.title + if self.page_title is None: + context["page_title"] = self.title + else: + context["page_title"] = self.page_title return context diff --git a/openstack_dashboard/templates/angular.html b/openstack_dashboard/templates/angular.html index 1a5bf3b930..13f5b5fee7 100644 --- a/openstack_dashboard/templates/angular.html +++ b/openstack_dashboard/templates/angular.html @@ -2,8 +2,6 @@ {% load i18n %} {% block title %}{{ title }}{% endblock %} -{% block breadcrumb_nav %}{% endblock %} - {% block page_header %} {% endblock %}