Добавил недостающий title
This commit is contained in:
parent
1cac5cb9ad
commit
b82a6a27cf
@ -25,7 +25,9 @@ urlpatterns = [
|
|||||||
# Sitemap
|
# Sitemap
|
||||||
path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'),
|
path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'),
|
||||||
path('robots.txt', views.robots_txt, name='robots'),
|
path('robots.txt', views.robots_txt, name='robots'),
|
||||||
path('login/', auth_views.LoginView.as_view(template_name='programmer/login.html'), name='login'),
|
path('login/', auth_views.LoginView.as_view(template_name='programmer/login.html',
|
||||||
|
extra_context={'title': 'Вход | СНА Технологии'}),
|
||||||
|
name='login'),
|
||||||
path('logout/', auth_views.LogoutView.as_view(), name='logout'),
|
path('logout/', auth_views.LogoutView.as_view(), name='logout'),
|
||||||
path('register/', views.RegisterView.as_view(), name='register'),
|
path('register/', views.RegisterView.as_view(), name='register'),
|
||||||
path('profile/', views.ProfileView.as_view(), name='profile'),
|
path('profile/', views.ProfileView.as_view(), name='profile'),
|
||||||
|
|||||||
@ -217,6 +217,10 @@ class RegisterView(PageViewTrackingMixin, MenuContextMixin, SuccessMessageMixin,
|
|||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super().get_context_data(**kwargs)
|
context = super().get_context_data(**kwargs)
|
||||||
context['next'] = self.request.GET.get('next', '')
|
context['next'] = self.request.GET.get('next', '')
|
||||||
|
context.update({
|
||||||
|
'title': "Регистрация | СНА Технологии",
|
||||||
|
})
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
@ -268,6 +272,14 @@ class PrivacyPolicyView(TemplateView, MenuContextMixin, BreadcrumbMixin):
|
|||||||
def get_breadcrumbs(self):
|
def get_breadcrumbs(self):
|
||||||
return [{'title': 'Политика конфиденциальности', 'url_name': None}]
|
return [{'title': 'Политика конфиденциальности', 'url_name': None}]
|
||||||
|
|
||||||
|
def get_context_data(self, **kwargs):
|
||||||
|
context = super().get_context_data(**kwargs)
|
||||||
|
context.update({
|
||||||
|
'title': "Политика конфиденциальности | СНА Технологии",
|
||||||
|
})
|
||||||
|
|
||||||
|
return context
|
||||||
|
|
||||||
|
|
||||||
class SolutionDetailView(MenuContextMixin, BreadcrumbMixin, DetailView):
|
class SolutionDetailView(MenuContextMixin, BreadcrumbMixin, DetailView):
|
||||||
model = Solution
|
model = Solution
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user