From 6ae6783eebcd116ce3943910adafed11aae708d6 Mon Sep 17 00:00:00 2001 From: zhurong Date: Thu, 5 Jan 2017 10:04:21 +0800 Subject: [PATCH] Add page title for some panel table Now some of the table have no page title, this commit add it. Change-Id: I4a94d18dcee0f0212b58da3e08d0f72ab0d0d284 --- watcher_dashboard/content/action_plans/views.py | 1 + watcher_dashboard/content/actions/views.py | 1 + watcher_dashboard/content/audits/views.py | 1 + watcher_dashboard/content/goals/views.py | 1 + watcher_dashboard/content/strategies/views.py | 1 + 5 files changed, 5 insertions(+) diff --git a/watcher_dashboard/content/action_plans/views.py b/watcher_dashboard/content/action_plans/views.py index 625f22e..c37ac2c 100644 --- a/watcher_dashboard/content/action_plans/views.py +++ b/watcher_dashboard/content/action_plans/views.py @@ -35,6 +35,7 @@ LOG = logging.getLogger(__name__) class IndexView(horizon.tables.DataTableView): table_class = tables.ActionPlansTable template_name = 'infra_optim/action_plans/index.html' + page_title = _("Action Plans") def get_context_data(self, **kwargs): context = super(IndexView, self).get_context_data(**kwargs) diff --git a/watcher_dashboard/content/actions/views.py b/watcher_dashboard/content/actions/views.py index f156a86..7fd97b4 100644 --- a/watcher_dashboard/content/actions/views.py +++ b/watcher_dashboard/content/actions/views.py @@ -34,6 +34,7 @@ LOG = logging.getLogger(__name__) class IndexView(horizon.tables.DataTableView): table_class = tables.ActionsTable template_name = 'infra_optim/actions/index.html' + page_title = _("Actions") def get_context_data(self, **kwargs): context = super(IndexView, self).get_context_data(**kwargs) diff --git a/watcher_dashboard/content/audits/views.py b/watcher_dashboard/content/audits/views.py index b07c92c..cecda3d 100644 --- a/watcher_dashboard/content/audits/views.py +++ b/watcher_dashboard/content/audits/views.py @@ -38,6 +38,7 @@ LOG = logging.getLogger(__name__) class IndexView(horizon.tables.DataTableView): table_class = tables.AuditsTable template_name = 'infra_optim/audits/index.html' + page_title = _("Audits") def get_context_data(self, **kwargs): context = super(IndexView, self).get_context_data(**kwargs) diff --git a/watcher_dashboard/content/goals/views.py b/watcher_dashboard/content/goals/views.py index f7b81d6..050f605 100644 --- a/watcher_dashboard/content/goals/views.py +++ b/watcher_dashboard/content/goals/views.py @@ -34,6 +34,7 @@ LOG = logging.getLogger(__name__) class IndexView(horizon.tables.DataTableView): table_class = tables.GoalsTable template_name = 'infra_optim/goals/index.html' + page_title = _("Goals") def get_context_data(self, **kwargs): context = super(IndexView, self).get_context_data(**kwargs) diff --git a/watcher_dashboard/content/strategies/views.py b/watcher_dashboard/content/strategies/views.py index 43d3989..2ca1348 100644 --- a/watcher_dashboard/content/strategies/views.py +++ b/watcher_dashboard/content/strategies/views.py @@ -33,6 +33,7 @@ LOG = logging.getLogger(__name__) class IndexView(horizon.tables.DataTableView): table_class = tables.StrategiesTable template_name = 'infra_optim/strategies/index.html' + page_title = _("Strategies") def get_context_data(self, **kwargs): context = super(IndexView, self).get_context_data(**kwargs)