<%namespace name="base" file="/base/base.html"/> <% elems = [ (_('Owner'), lambda:base.gravatar_with_user(c.repo_info.user.email), '', ''), (_('Created on'), h.format_date(c.repo_info.created_on), '', ''), (_('Updated on'), h.format_date(c.repo_info.updated_on), '', ''), (_('Cached Commit id'), lambda: h.link_to(c.repo_info.changeset_cache.get('short_id'), h.url('changeset_home',repo_name=c.repo_name,revision=c.repo_info.changeset_cache.get('raw_id'))), '', ''), ] %>

${_('Repository: %s') % c.repo_info.repo_name}

${base.dt_info_panel(elems)}

${_('Fork Reference')}

${h.secure_form(url('edit_repo_advanced_fork', repo_name=c.repo_info.repo_name), method='put')} % if c.repo_info.fork:
${h.literal(_('This repository is a fork of %(repo_link)s') % {'repo_link': h.link_to_if(c.has_origin_repo_read_perm,c.repo_info.fork.repo_name, h.url('summary_home', repo_name=c.repo_info.fork.repo_name))})} |
% endif
${h.hidden('id_fork_of')} ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small",)}
${_('Manually set this repository as a fork of another from the list')}
${h.end_form()}

${_('Public Journal Visibility')}

${h.secure_form(url('edit_repo_advanced_journal', repo_name=c.repo_info.repo_name), method='put')}
%if c.in_public_journal: %else: %endif
${_('All actions made on this repository will be visible to everyone following the public journal.')}
${h.end_form()}

${_('Locking state')}

${h.secure_form(url('edit_repo_advanced_locking', repo_name=c.repo_info.repo_name), method='put')} %if c.repo_info.locked[0]:
${'Locked by %s on %s. Lock reason: %s' % (h.person_by_id(c.repo_info.locked[0]), h.format_date(h. time_to_datetime(c.repo_info.locked[1])), c.repo_info.locked[2])}
%else:
${_('This Repository is not currently locked.')}
%endif
%if c.repo_info.locked[0]: ${h.hidden('set_unlock', '1')} %else: ${h.hidden('set_lock', '1')} %endif
${_('Force repository locking. This only works when anonymous access is disabled. Pulling from the repository locks the repository to that user until the same user pushes to that repository again.')}
${h.end_form()}

${_('Delete repository')}

${h.secure_form(url('repo', repo_name=c.repo_name),method='delete')}
${ungettext('This repository has %s fork.', 'This repository has %s forks.', c.repo_info. forks.count()) % c.repo_info.forks.count()} %if c.repo_info.forks.count(): %endif %if c.repo_info.forks.count(): %endif
${_('This repository will be renamed in a special way in order to make it inaccessible to RhodeCode Enterprise and its VCS systems. If you need to fully delete it from the file system, please do it manually, or with rhodecode-cleanup-repos command.')}
${h.end_form()}