diff --git a/rhodecode/templates/index_base.html b/rhodecode/templates/index_base.html --- a/rhodecode/templates/index_base.html +++ b/rhodecode/templates/index_base.html @@ -11,8 +11,14 @@
  • %if c.group: ${h.link_to(_('Add repository'),h.url('admin_settings_create_repository',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'))} + %if h.HasPermissionAny('hg.admin')(): + ${h.link_to(_(u'Add group'),h.url('new_repos_group'))} + %endif %endif
  • %endif