From a35a580e437d0a139314422b49ef40632604cb26 Mon Sep 17 00:00:00 2001 From: Filipe Medeiros Date: Fri, 25 Nov 2016 22:21:41 -0300 Subject: [PATCH] Adding page title [Issue #429] --- app/views.py | 1 + courses/templates/topic/index.html | 2 +- courses/views.py | 20 +++++++++++++++++++- users/views.py | 5 +++++ 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/app/views.py b/app/views.py index b1293c3..96ff86a 100644 --- a/app/views.py +++ b/app/views.py @@ -79,6 +79,7 @@ class AmadeusSettings(LoginRequiredMixin, HasRoleMixin, generic.CreateView): def get_context_data(self, **kwargs): context = super(AmadeusSettings, self).get_context_data(**kwargs) context['page'] = self.kwargs.get('page') + context['title'] = 'Settings' if not self.request.method == 'POST': try: setting = EmailBackend.objects.latest('id') diff --git a/courses/templates/topic/index.html b/courses/templates/topic/index.html index 8dafff3..04ce5d9 100644 --- a/courses/templates/topic/index.html +++ b/courses/templates/topic/index.html @@ -33,7 +33,7 @@