1. Takumi IINO
  2. RhodeCode

Commits

Marcin Kuzminski  committed 667630c

added "add group" shortcuts for admins, and group admins

  • Participants
  • Parent commits 4856bd8
  • Branches beta

Comments (0)

Files changed (1)

File rhodecode/templates/index_base.html

View file
  • Ignore whitespace
                   <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