# HG changeset patch # User Marcin Kuzminski # Date 2013-02-14 22:09:17 # Node ID 667630c98eaad5541d0e38f3929d74da05d563c4 # Parent 4856bd880888d50f494b800043fd9301e8b391a4 added "add group" shortcuts for admins, and group admins 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