From b58f14d5e11745aee2c193011bc6a008ee437b39 Mon Sep 17 00:00:00 2001 From: Sam Betts Date: Tue, 10 Feb 2015 13:06:03 +0000 Subject: [PATCH] Reduce page title duplication in Admin Defaults Patch https://review.openstack.org/#/c/142802/15 adds a method of reducing duplication of page title logic, this patch applies that change to the admin defaults view. Change-Id: I7d3523018de6f5a73b583790eecdb386d16e69de Partial-Bug: 1413749 --- .../dashboards/admin/defaults/templates/defaults/index.html | 4 ---- openstack_dashboard/dashboards/admin/defaults/views.py | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/openstack_dashboard/dashboards/admin/defaults/templates/defaults/index.html b/openstack_dashboard/dashboards/admin/defaults/templates/defaults/index.html index c855030374..a1f878a398 100644 --- a/openstack_dashboard/dashboards/admin/defaults/templates/defaults/index.html +++ b/openstack_dashboard/dashboards/admin/defaults/templates/defaults/index.html @@ -2,10 +2,6 @@ {% load i18n %} {% block title %}{% trans "Defaults" %}{% endblock %} -{% block page_header %} - {% include "horizon/common/_page_header.html" with title=_("Defaults")%} -{% endblock page_header %} - {% block main %}
diff --git a/openstack_dashboard/dashboards/admin/defaults/views.py b/openstack_dashboard/dashboards/admin/defaults/views.py index 787dc979f5..7cf156d38a 100644 --- a/openstack_dashboard/dashboards/admin/defaults/views.py +++ b/openstack_dashboard/dashboards/admin/defaults/views.py @@ -26,6 +26,7 @@ from openstack_dashboard.usage import quotas class IndexView(tabs.TabbedTableView): tab_group_class = project_tabs.DefaultsTabs template_name = 'admin/defaults/index.html' + page_title = _("Defaults") class UpdateDefaultQuotasView(workflows.WorkflowView):