Mercurial > kallithea
changeset 3369:667630c98eaa beta
added "add group" shortcuts for admins, and group admins
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 14 Feb 2013 23:09:17 +0100 |
parents | 4856bd880888 |
children | fdb0f59b2189 |
files | rhodecode/templates/index_base.html |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ <li> %if c.group: <span>${h.link_to(_('Add repository'),h.url('admin_settings_create_repository',parent_group=c.group.group_id))}</span> + %if h.HasPermissionAny('hg.admin')() or h.HasReposGroupPermissionAny('group.admin')(c.group.group_name): + <span>${h.link_to(_(u'Add group'),h.url('new_repos_group', parent_group=c.group.group_id))}</span> + %endif %else: <span>${h.link_to(_('Add repository'),h.url('admin_settings_create_repository'))}</span> + %if h.HasPermissionAny('hg.admin')(): + <span>${h.link_to(_(u'Add group'),h.url('new_repos_group'))}</span> + %endif %endif </li> %endif