## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%def name="title()"> ${_('Edit repository')} ${c.repo_info.repo_name} - ${c.rhodecode_name} <%def name="breadcrumbs_links()"> ${h.link_to(_('Admin'),h.url('admin_home'))} » ${h.link_to(_('Repositories'),h.url('repos'))} » ${_('edit')} » ${h.link_to(c.repo_info.just_name,h.url('summary_home',repo_name=c.repo_name))} <%def name="page_nav()"> ${self.menu('admin')} <%def name="main()">
${self.breadcrumbs()}
${h.form(url('repo', repo_name=c.repo_info.repo_name),method='put')}
${h.text('repo_name',class_="medium")}
${h.text('clone_uri',class_="medium")} ${_('Optional http[s] url from which repository should be cloned.')}
${h.select('repo_group','',c.repo_groups,class_="medium")} ${_('Optional select a group to put this repository into.')}
${h.select('repo_type','hg',c.backends,class_="medium")}
${h.select('landing_rev','',c.landing_revs,class_="medium")} ${_('Default revision for files page, downloads, whoosh and readme')}
${h.textarea('description')} ${_('Keep it short and to the point. Use a README file for longer descriptions.')}
${h.checkbox('private',value="True")} ${_('Private repositories are only visible to people explicitly added as collaborators.')}
${h.checkbox('enable_statistics',value="True")} ${_('Enable statistics window on summary page.')}
${h.checkbox('enable_downloads',value="True")} ${_('Enable download menu on summary page.')}
${h.text('user',class_='yui-ac-input')} ${_('Change owner of this repository.')}
<%include file="repo_edit_perms.html"/>
${h.submit('save','Save',class_="ui-button")} ${h.reset('reset','Reset',class_="ui-button")}
${h.end_form()}
${_('Administration')}

${_('Statistics')}

${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')}
${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")}
  • ${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}
  • ${_('Stats gathered')}: ${c.stats_percentage}%
${h.end_form()} %if c.repo_info.clone_uri:

${_('Remote')}

${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')}
${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="ui-btn",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")}
${h.end_form()} %endif

${_('Cache')}

${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')}
${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")}
${h.end_form()}

${_('Public journal')}

${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')}
${h.hidden('auth_token',str(h.get_token()))}
%if c.in_public_journal: ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Remove from public journal'),class_="ui-btn")} %else: ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Add to public journal'),class_="ui-btn")} %endif
  • ${_('''All actions made on this repository will be accessible to everyone in public journal''')}
${h.end_form()}

${_('Delete')}

${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')}
${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")}
  • ${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need fully delete it from filesystem please do it manually''')}
${h.end_form()}

${_('Set as fork of')}

${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')}
${h.select('id_fork_of','',c.repos_list,class_="medium")} ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('set'),class_="ui-btn",)}
  • ${_('''Manually set this repository as a fork of another from the list''')}
${h.end_form()}