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

Pass titles to all pages

parent d6ad1efb
......@@ -33,36 +33,52 @@ urlpatterns = patterns('',
name='weblate_register'),
url(r'^accounts/register/complete/$',
direct_to_template,
{'template': 'registration/registration_complete.html'},
{
'template': 'registration/registration_complete.html',
'extra_context': {'title': _('User registration')},
},
name='registration_complete'),
url(r'^accounts/activate/(?P<activation_key>\w+)/$',
activate,
{'extra_context': {'title': _('Account activation')}},
name='registration_activate'),
url(r'^accounts/login/$',
auth_views.login,
{'template_name': 'registration/login.html'},
{
'template_name': 'registration/login.html',
'extra_context': {'title': _('Login')},
},
name='auth_login'),
url(r'^accounts/logout/$',
auth_views.logout,
{'template_name': 'registration/logout.html'},
{
'template_name': 'registration/logout.html',
'extra_context': {'title': _('Logged out')},
},
name='auth_logout'),
url(r'^accounts/password/change/$',
auth_views.password_change,
{'extra_context': {'title': _('Change password')}},
name='auth_password_change'),
url(r'^accounts/password/change/done/$',
auth_views.password_change_done,
{'extra_context': {'title': _('Password changed')}},
name='auth_password_change_done'),
url(r'^accounts/password/reset/$',
auth_views.password_reset,
{'extra_context': {'title': _('Reset password')}},
name='auth_password_reset'),
url(r'^accounts/password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
auth_views.password_reset_confirm,
{'extra_context': {'title': _('Reset password')}},
name='auth_password_reset_confirm'),
url(r'^accounts/password/reset/complete/$',
auth_views.password_reset_complete,
{'extra_context': {'title': _('Reset password')}},
name='auth_password_reset_complete'),
url(r'^accounts/password/reset/done/$',
auth_views.password_reset_done,
{'extra_context': {'title': _('Reset password')}},
name='auth_password_reset_done'),
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