## -*- coding: utf-8 -*-
<%inherit file="root.mako"/>
<%include file="/ejs_templates/templates.html"/>
## SVN/HG/GIT icons
%if h.is_hg(repo_instance):
%endif
%if h.is_git(repo_instance):
%endif
%if h.is_svn(repo_instance):
%endif
## public/private
%if repo_instance.private:
%else:
%endif
## repo name with group name
${h.breadcrumb_repo_link(repo_instance)}
## FORKED
%if repo_instance.fork:
${_('Fork of')}
${h.link_to_if(c.has_origin_repo_read_perm,repo_instance.fork.repo_name, h.route_path('repo_summary', repo_name=repo_instance.fork.repo_name))}
%endif
## IMPORTED FROM REMOTE
%if repo_instance.clone_uri:
${_('Clone from')}
${h.hide_credentials(repo_instance.clone_uri)}
%endif
## LOCKING STATUS
%if repo_instance.locked[0]:
${_('Repository locked by %(user)s') % {'user': h.person_by_id(repo_instance.locked[0])}}
%elif repo_instance.enable_locking:
${_('Repository not locked. Pull repository to lock it.')}
%endif
%def>
<%def name="repo_menu(active=None)">
<%
def is_active(selected):
if selected == active:
return "active"
%>
## Repository Group icon
## repo name with group name
${h.breadcrumb_repo_group_link(repo_group_instance)}
<%namespace name="dt" file="/data_table/_dt_elements.mako"/>
${dt.repo_group_desc(repo_group_instance.description_safe, repo_group_instance.personal, c.visual.stylify_metatags)}
%def>
<%def name="repo_group_menu(active=None)">
<%
def is_active(selected):
if selected == active:
return "active"
is_admin = h.HasPermissionAny('hg.admin')('can create repos index page')
gr_name = c.repo_group.group_name if c.repo_group else None
# create repositories with write permission on group is set to true
create_on_write = h.HasPermissionAny('hg.create.write_on_repogroup.true')()
group_admin = h.HasRepoGroupPermissionAny('group.admin')(gr_name, 'group admin index page')
group_write = h.HasRepoGroupPermissionAny('group.write')(gr_name, 'can write into group index page')
%>
## notice box for important system messages
-
## Main filter
-
Use '/' key to quickly access this field.
Enter name of repository, or repository group for quick search.
Prefix query to allow special search:
user:admin, to search for usernames
user_group:devops, to search for user groups
commit:efced4, to search for commits
## ROOT MENU
%if c.rhodecode_user.username != h.DEFAULT_USER:
-
%else:
-
%endif
-
-
% if h.HasPermissionAll('hg.admin')('access admin main page'):
-
${admin_menu()}
% elif c.rhodecode_user.repositories_admin or c.rhodecode_user.repository_groups_admin or c.rhodecode_user.user_groups_admin:
-
${admin_menu_simple(c.rhodecode_user.repositories_admin,
c.rhodecode_user.repository_groups_admin,
c.rhodecode_user.user_groups_admin or h.HasPermissionAny('hg.usergroup.create.true')())}
% endif
## render extra user menu
${usermenu(active=(active=='my_account'))}
% if c.debug_style:
-
% endif
%def>