From dc03bbbb64ddd97273968ccdcde4300c6fe18a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 23 Jun 2015 13:46:57 +0200 Subject: [PATCH] Title for PMASA pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- pmaweb/templates/base.html | 2 +- pmaweb/templates/security/pmasa_detail.html | 1 - security/views.py | 5 +++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pmaweb/templates/base.html b/pmaweb/templates/base.html index 7b927122..cf9a4e3f 100644 --- a/pmaweb/templates/base.html +++ b/pmaweb/templates/base.html @@ -7,7 +7,7 @@ - phpMyAdmin{% if page_title %} -- {{ page_title }}{% endif %} + phpMyAdmin{% if page_title %} - {{ page_title }}{% endif %} {% if page_rss %} {% endif %} diff --git a/pmaweb/templates/security/pmasa_detail.html b/pmaweb/templates/security/pmasa_detail.html index 60687466..4770c96e 100644 --- a/pmaweb/templates/security/pmasa_detail.html +++ b/pmaweb/templates/security/pmasa_detail.html @@ -1,7 +1,6 @@ {% extends 'base.html' %} {% load staticfiles %} -Security - ${announcement_id()} ${base_url}security/index.xml phpMyAdmin security issues diff --git a/security/views.py b/security/views.py index bb065e74..646c71b1 100644 --- a/security/views.py +++ b/security/views.py @@ -26,6 +26,11 @@ class PMASAView(DetailView): model = PMASA + def get_context_data(self, **kwargs): + context = super(PMASAView, self).get_context_data(**kwargs) + context['page_title'] = 'Security - {0}'.format(self.object) + return context + def get_object(self, queryset=None): if queryset is None: queryset = self.get_queryset()