## -*- 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')} "${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.select('repo_type','hg',c.backends,class_="medium")}
${h.textarea('description',cols=23,rows=5)}
${h.checkbox('private',value="True")}
${h.checkbox('enable_statistics',value="True")}
${h.text('user',class_='yui-ac-input')}
%for r2p in c.repo_info.repo_to_perm: %if r2p.user.username =='default' and c.repo_info.private: %else: %endif %endfor
${_('none')} ${_('read')} ${_('write')} ${_('admin')} ${_('user')}
${_('private repository')} ${r2p.user.username}
${h.radio('perm_%s' % r2p.user.username,'repository.none')} ${h.radio('perm_%s' % r2p.user.username,'repository.read')} ${h.radio('perm_%s' % r2p.user.username,'repository.write')} ${h.radio('perm_%s' % r2p.user.username,'repository.admin')} ${r2p.user.username} %if r2p.user.username !='default': %endif
${h.radio('perm_new_user','repository.none')} ${h.radio('perm_new_user','repository.read')} ${h.radio('perm_new_user','repository.write')} ${h.radio('perm_new_user','repository.admin')}
${h.text('perm_new_user_name',class_='yui-ac-input')}
${_('Add another user')}
${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_="refresh_icon action_button",onclick="return confirm('Confirm to remove current statistics');")}
  • ${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}
  • ${_('Percentage of stats gathered')}: ${c.stats_percentage} %
${h.end_form()}

${_('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_="refresh_icon action_button",onclick="return confirm('Confirm to invalidate repository cache');")}
${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_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
${h.end_form()}