# HG changeset patch # User Marcin Kuzminski # Date 1365026473 -7200 # Node ID 77e6e941001f6999a1b04a6fbaada6726ae677b4 # Parent 7e73c0f4f335980ab3f04bd5bea65fc609dec67f fixed admin link for creating repos, and refactored the routes name diff -r 7e73c0f4f335 -r 77e6e941001f rhodecode/config/routing.py --- a/rhodecode/config/routing.py Wed Apr 03 19:40:37 2013 +0200 +++ b/rhodecode/config/routing.py Thu Apr 04 00:01:13 2013 +0200 @@ -104,13 +104,8 @@ m.connect("formatted_repos", "/repos.{format}", action="index", conditions=dict(method=["GET"])) - m.connect("new_repo", "/repos/new", - action="new", conditions=dict(method=["GET"])) - #TODO: refactor the name - m.connect("admin_settings_create_repository", "/create_repository", + m.connect("new_repo", "/create_repository", action="create_repository", conditions=dict(method=["GET"])) - m.connect("formatted_new_repo", "/repos/new.{format}", - action="new", conditions=dict(method=["GET"])) m.connect("/repos/{repo_name:.*?}", action="update", conditions=dict(method=["PUT"], function=check_repo)) diff -r 7e73c0f4f335 -r 77e6e941001f rhodecode/templates/index_base.html --- a/rhodecode/templates/index_base.html Wed Apr 03 19:40:37 2013 +0200 +++ b/rhodecode/templates/index_base.html Thu Apr 04 00:01:13 2013 +0200 @@ -10,12 +10,12 @@ %if h.HasPermissionAny('hg.admin','hg.create.repository')() or h.HasReposGroupPermissionAny('group.write', 'group.admin')(c.group.group_name if c.group else None):
  • %if c.group: - ${h.link_to(_('Add repository'),h.url('admin_settings_create_repository',parent_group=c.group.group_id))} + ${h.link_to(_('Add repository'),h.url('new_repo',parent_group=c.group.group_id))} %if h.HasPermissionAny('hg.admin')() or h.HasReposGroupPermissionAny('group.admin')(c.group.group_name): ${h.link_to(_(u'Add group'),h.url('new_repos_group', parent_group=c.group.group_id))} %endif %else: - ${h.link_to(_('Add repository'),h.url('admin_settings_create_repository'))} + ${h.link_to(_('Add repository'),h.url('new_repo'))} %if h.HasPermissionAny('hg.admin')(): ${h.link_to(_(u'Add group'),h.url('new_repos_group'))} %endif