Add page title for some panel table

Now some of the table have no page title, this commit add it.

Change-Id: I4a94d18dcee0f0212b58da3e08d0f72ab0d0d284
This commit is contained in:
zhurong 2017-01-05 10:04:21 +08:00
parent 139405819e
commit 6ae6783eeb
5 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)