Commit 6c856021da221e3462b02896c1a6695fda1ebcae

Authored by Gustavo Bernardo
1 parent f18db845

Title's included [Issue:#429]

Showing 1 changed file with 5 additions and 8 deletions   Show diff stats
app/views.py
... ... @@ -14,7 +14,7 @@ from .forms import EmailBackendForm
14 14 from courses.models import Course
15 15  
16 16 class AppIndex(LoginRequiredMixin, ListView, NotificationMixin):
17   - login_url = reverse_lazy("core:home")
  17 + login_url = reverse_lazy("core:home")
18 18 redirect_field_name = 'next'
19 19  
20 20 template_name = "home.html"
... ... @@ -34,15 +34,15 @@ class AppIndex(LoginRequiredMixin, ListView, NotificationMixin):
34 34 context['page_template'] = "home_admin_content.html"
35 35 else:
36 36 context['page_template'] = "home_teacher_student_content.html"
37   -
38   - context['title'] = 'Amadeus'
  37 +
  38 + context['title'] = _('Home | Amadeus')
39 39  
40 40 if self.request.is_ajax():
41 41 if self.request.user.is_staff:
42 42 self.template_name = "home_admin_content.html"
43 43 else:
44 44 self.template_name = "home_teacher_student_content.html"
45   -
  45 +
46 46 return self.response_class(request = self.request, template = self.template_name, context = context, using = self.template_engine, **response_kwargs)
47 47  
48 48 class AmadeusSettings(LoginRequiredMixin, HasRoleMixin, generic.CreateView):
... ... @@ -79,7 +79,7 @@ class AmadeusSettings(LoginRequiredMixin, HasRoleMixin, generic.CreateView):
79 79 def get_context_data(self, **kwargs):
80 80 context = super(AmadeusSettings, self).get_context_data(**kwargs)
81 81 context['page'] = self.kwargs.get('page')
82   - context['title'] = 'Settings'
  82 + context['title'] = _('Settings | Amadeus')
83 83 if not self.request.method == 'POST':
84 84 try:
85 85 setting = EmailBackend.objects.latest('id')
... ... @@ -87,6 +87,3 @@ class AmadeusSettings(LoginRequiredMixin, HasRoleMixin, generic.CreateView):
87 87 except:
88 88 pass
89 89 return context
90   -
91   -
92   -
... ...