<%inherit file="/base/base.mako"/> <%def name="menu_bar_subnav()"> % if c.repo_group: ${self.repo_group_menu(active='home')} % endif <%def name="main()">
% if c.repo_group: ${self.repo_group_page_title(c.repo_group)} ## context actions
% endif %if c.rhodecode_user.username != h.DEFAULT_USER:
<% is_admin = h.HasPermissionAny('hg.admin')('can create repos index page') create_repo = h.HasPermissionAny('hg.create.repository')('can create repository index page') create_repo_group = h.HasPermissionAny('hg.repogroup.create.true')('can create repository groups index page') create_user_group = h.HasPermissionAny('hg.usergroup.create.true')('can create user groups index page') %> %if not c.repo_group: ## no repository group context here %if is_admin or create_repo: ${_('Add Repository')} %endif %if is_admin or create_repo_group: ${_(u'Add Repository Group')} %endif %endif
%endif
## no repository groups and repos present, show something to the users % if c.repo_groups_data == '[]' and c.repos_data == '[]':

${_('No repositories or repositories groups exists here.')}

% endif