Commit 519e988d authored by Michal Čihař's avatar Michal Čihař

Pass titles to all pages

parent d6ad1efb
...@@ -33,36 +33,52 @@ urlpatterns = patterns('', ...@@ -33,36 +33,52 @@ urlpatterns = patterns('',
name='weblate_register'), name='weblate_register'),
url(r'^accounts/register/complete/$', url(r'^accounts/register/complete/$',
direct_to_template, direct_to_template,
{'template': 'registration/registration_complete.html'}, {
'template': 'registration/registration_complete.html',
'extra_context': {'title': _('User registration')},
},
name='registration_complete'), name='registration_complete'),
url(r'^accounts/activate/(?P<activation_key>\w+)/$', url(r'^accounts/activate/(?P<activation_key>\w+)/$',
activate, activate,
{'extra_context': {'title': _('Account activation')}},
name='registration_activate'), name='registration_activate'),
url(r'^accounts/login/$', url(r'^accounts/login/$',
auth_views.login, auth_views.login,
{'template_name': 'registration/login.html'}, {
'template_name': 'registration/login.html',
'extra_context': {'title': _('Login')},
},
name='auth_login'), name='auth_login'),
url(r'^accounts/logout/$', url(r'^accounts/logout/$',
auth_views.logout, auth_views.logout,
{'template_name': 'registration/logout.html'}, {
'template_name': 'registration/logout.html',
'extra_context': {'title': _('Logged out')},
},
name='auth_logout'), name='auth_logout'),
url(r'^accounts/password/change/$', url(r'^accounts/password/change/$',
auth_views.password_change, auth_views.password_change,
{'extra_context': {'title': _('Change password')}},
name='auth_password_change'), name='auth_password_change'),
url(r'^accounts/password/change/done/$', url(r'^accounts/password/change/done/$',
auth_views.password_change_done, auth_views.password_change_done,
{'extra_context': {'title': _('Password changed')}},
name='auth_password_change_done'), name='auth_password_change_done'),
url(r'^accounts/password/reset/$', url(r'^accounts/password/reset/$',
auth_views.password_reset, auth_views.password_reset,
{'extra_context': {'title': _('Reset password')}},
name='auth_password_reset'), name='auth_password_reset'),
url(r'^accounts/password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', url(r'^accounts/password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
auth_views.password_reset_confirm, auth_views.password_reset_confirm,
{'extra_context': {'title': _('Reset password')}},
name='auth_password_reset_confirm'), name='auth_password_reset_confirm'),
url(r'^accounts/password/reset/complete/$', url(r'^accounts/password/reset/complete/$',
auth_views.password_reset_complete, auth_views.password_reset_complete,
{'extra_context': {'title': _('Reset password')}},
name='auth_password_reset_complete'), name='auth_password_reset_complete'),
url(r'^accounts/password/reset/done/$', url(r'^accounts/password/reset/done/$',
auth_views.password_reset_done, auth_views.password_reset_done,
{'extra_context': {'title': _('Reset password')}},
name='auth_password_reset_done'), name='auth_password_reset_done'),
url(r'^accounts/profile/', 'accounts.views.profile'), url(r'^accounts/profile/', 'accounts.views.profile'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment