# HG changeset patch # User Marcin Kuzminski # Date 1360879757 -3600 # Node ID 667630c98eaad5541d0e38f3929d74da05d563c4 # Parent 4856bd880888d50f494b800043fd9301e8b391a4 added "add group" shortcuts for admins, and group admins diff -r 4856bd880888 -r 667630c98eaa rhodecode/templates/index_base.html --- a/rhodecode/templates/index_base.html Wed Feb 13 22:36:24 2013 +0100 +++ b/rhodecode/templates/index_base.html Thu Feb 14 23:09:17 2013 +0100 @@ -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