# HG changeset patch # User Johannes Bornhold # Date 2016-05-25 09:43:55 # Node ID 00b006e4475f037b5844caca3905f324c6c7562e # Parent 74a48d81f62c3d702c6a1f520b8ec186cd2061cd templates: Migrate base template to use pyramid login/logout/register URLs. diff --git a/rhodecode/templates/base/base.html b/rhodecode/templates/base/base.html --- a/rhodecode/templates/base/base.html +++ b/rhodecode/templates/base/base.html @@ -297,7 +297,7 @@
%if c.rhodecode_user.username == h.DEFAULT_USER:

${_('Sign in to your account')}

- ${h.form(h.url('login_home',came_from=h.url.current()), needs_csrf_token=False)} + ${h.form(h.route_path('login', _query={'came_from': h.url.current()}), needs_csrf_token=False)}
@@ -312,7 +312,7 @@
- ${h.link_to(_('(Forgot password?)'),h.url('reset_password'))} + ${h.link_to(_('(Forgot password?)'),h.route_path('reset_password'))}
${h.password('password',class_='focus',tabindex=2)} @@ -321,7 +321,7 @@
%if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): - ${h.link_to(_("Don't have an account ?"),h.url('register'))} + ${h.link_to(_("Don't have an account ?"),h.route_path('register'))} %endif
@@ -341,7 +341,7 @@