repo_edit.html
291 lines
| 11.9 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
r619 | ${_('Edit repository')} ${c.repo_info.repo_name} - ${c.rhodecode_name} | |||
r547 | </%def> | |||
<%def name="breadcrumbs_links()"> | ||||
r1888 | ${h.link_to(_('Admin'),h.url('admin_home'))} | |||
» | ||||
${h.link_to(_('Repositories'),h.url('repos'))} | ||||
r547 | » | |||
r1159 | ${_('edit')} » ${h.link_to(c.repo_info.just_name,h.url('summary_home',repo_name=c.repo_name))} | |||
r547 | </%def> | |||
<%def name="page_nav()"> | ||||
${self.menu('admin')} | ||||
</%def> | ||||
<%def name="main()"> | ||||
r699 | <div class="box box-left"> | |||
r547 | <!-- box / title --> | |||
<div class="title"> | ||||
r1888 | ${self.breadcrumbs()} | |||
r547 | </div> | |||
${h.form(url('repo', repo_name=c.repo_info.repo_name),method='put')} | ||||
<div class="form"> | ||||
<!-- fields --> | ||||
<div class="fields"> | ||||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="repo_name">${_('Name')}:</label> | ||||
</div> | ||||
r703 | <div class="input"> | |||
r699 | ${h.text('repo_name',class_="medium")} | |||
r547 | </div> | |||
r1112 | </div> | |||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="clone_uri">${_('Clone uri')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r1159 | ${h.text('clone_uri',class_="medium")} | |||
r2103 | <span class="help-block">${_('Optional http[s] url from which repository should be cloned.')}</span> | |||
r1112 | </div> | |||
r1888 | </div> | |||
r1112 | <div class="field"> | |||
<div class="label"> | ||||
<label for="repo_group">${_('Repository group')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.select('repo_group','',c.repo_groups,class_="medium")} | ||||
r2103 | <span class="help-block">${_('Optional select a group to put this repository into.')}</span> | |||
r1112 | </div> | |||
r1888 | </div> | |||
r659 | <div class="field"> | |||
<div class="label"> | ||||
<label for="repo_type">${_('Type')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r699 | ${h.select('repo_type','hg',c.backends,class_="medium")} | |||
r659 | </div> | |||
r1888 | </div> | |||
r547 | <div class="field"> | |||
r2459 | <div class="label"> | |||
r3064 | <label for="repo_landing_rev">${_('Landing revision')}:</label> | |||
r2459 | </div> | |||
<div class="input"> | ||||
r3064 | ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")} | |||
r2459 | <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span> | |||
</div> | ||||
r2461 | </div> | |||
r2459 | <div class="field"> | |||
r547 | <div class="label label-textarea"> | |||
r3064 | <label for="repo_description">${_('Description')}:</label> | |||
r547 | </div> | |||
<div class="textarea text-area editor"> | ||||
r3064 | ${h.textarea('repo_description')} | |||
r2103 | <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> | |||
r547 | </div> | |||
</div> | ||||
r1888 | ||||
r547 | <div class="field"> | |||
<div class="label label-checkbox"> | ||||
r3064 | <label for="repo_private">${_('Private repository')}:</label> | |||
r547 | </div> | |||
<div class="checkboxes"> | ||||
r3064 | ${h.checkbox('repo_private',value="True")} | |||
r2103 | <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> | |||
r547 | </div> | |||
</div> | ||||
r810 | <div class="field"> | |||
<div class="label label-checkbox"> | ||||
r3064 | <label for="repo_enable_statistics">${_('Enable statistics')}:</label> | |||
r810 | </div> | |||
<div class="checkboxes"> | ||||
r3064 | ${h.checkbox('repo_enable_statistics',value="True")} | |||
r2103 | <span class="help-block">${_('Enable statistics window on summary page.')}</span> | |||
r810 | </div> | |||
r1888 | </div> | |||
r962 | <div class="field"> | |||
<div class="label label-checkbox"> | ||||
r3064 | <label for="repo_enable_downloads">${_('Enable downloads')}:</label> | |||
r962 | </div> | |||
<div class="checkboxes"> | ||||
r3064 | ${h.checkbox('repo_enable_downloads',value="True")} | |||
r2103 | <span class="help-block">${_('Enable download menu on summary page.')}</span> | |||
r962 | </div> | |||
r1888 | </div> | |||
r547 | <div class="field"> | |||
r2726 | <div class="label label-checkbox"> | |||
r3064 | <label for="repo_enable_locking">${_('Enable locking')}:</label> | |||
r2726 | </div> | |||
<div class="checkboxes"> | ||||
r3064 | ${h.checkbox('repo_enable_locking',value="True")} | |||
r2726 | <span class="help-block">${_('Enable lock-by-pulling on repository.')}</span> | |||
</div> | ||||
r2815 | </div> | |||
r2726 | <div class="field"> | |||
r581 | <div class="label"> | |||
r547 | <label for="user">${_('Owner')}:</label> | |||
</div> | ||||
r2103 | <div class="input input-medium ac"> | |||
r547 | <div class="perm_ac"> | |||
${h.text('user',class_='yui-ac-input')} | ||||
r2103 | <span class="help-block">${_('Change owner of this repository.')}</span> | |||
r547 | <div id="owner_container"></div> | |||
</div> | ||||
</div> | ||||
r1888 | </div> | |||
r547 | <div class="field"> | |||
<div class="label"> | ||||
<label for="input">${_('Permissions')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r1015 | <%include file="repo_edit_perms.html"/> | |||
</div> | ||||
r1888 | ||||
r1961 | <div class="buttons"> | |||
r2607 | ${h.submit('save',_('Save'),class_="ui-btn large")} | |||
${h.reset('reset',_('Reset'),class_="ui-btn large")} | ||||
r1961 | </div> | |||
r1888 | </div> | |||
r547 | </div> | |||
r1888 | </div> | |||
r547 | ${h.end_form()} | |||
</div> | ||||
r699 | ||||
<div class="box box-right"> | ||||
<div class="title"> | ||||
r1888 | <h5>${_('Administration')}</h5> | |||
r699 | </div> | |||
r1888 | ||||
r708 | <h3>${_('Statistics')}</h3> | |||
${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')} | ||||
<div class="form"> | ||||
<div class="fields"> | ||||
r1755 | ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")} | |||
<div class="field" style="border:none;color:#888"> | ||||
r708 | <ul> | |||
<li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li> | ||||
Aras Pranckevicius
|
r1981 | <li>${_('Stats gathered')}: ${c.stats_percentage}%</li> | ||
r708 | </ul> | |||
</div> | ||||
</div> | ||||
r1888 | </div> | |||
r708 | ${h.end_form()} | |||
r1888 | ||||
r1114 | %if c.repo_info.clone_uri: | |||
<h3>${_('Remote')}</h3> | ||||
${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')} | ||||
<div class="form"> | ||||
<div class="fields"> | ||||
r1755 | ${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')+"');")} | |||
r1114 | <div class="field" style="border:none"> | |||
<ul> | ||||
<li><a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri}</a></li> | ||||
r1888 | </ul> | |||
</div> | ||||
r1114 | </div> | |||
r1888 | </div> | |||
r1114 | ${h.end_form()} | |||
%endif | ||||
r1888 | ||||
r708 | <h3>${_('Cache')}</h3> | |||
${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')} | ||||
<div class="form"> | ||||
<div class="fields"> | ||||
r1755 | ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} | |||
r2809 | <div class="field" style="border:none;color:#888"> | |||
<ul> | ||||
<li>${_('Manually invalidate cache for this repository. On first access repository will be cached again')} | ||||
</li> | ||||
</ul> | ||||
r2815 | </div> | |||
r2809 | <div class="field" style="border:none;"> | |||
${_('List of cached values')} | ||||
r3020 | <table> | |||
<tr> | ||||
<th>${_('Prefix')}</th> | ||||
<th>${_('Key')}</th> | ||||
<th>${_('Active')}</th> | ||||
</tr> | ||||
r2809 | %for cache in c.repo_info.cache_keys: | |||
r3020 | <tr> | |||
r3029 | <td>${cache.prefix or '-'}</td> | |||
r3020 | <td>${cache.cache_key}</td> | |||
<td>${h.bool2icon(cache.cache_active)}</td> | ||||
</tr> | ||||
r2809 | %endfor | |||
r3020 | </table> | |||
r2815 | </div> | |||
r708 | </div> | |||
r1888 | </div> | |||
r708 | ${h.end_form()} | |||
r1888 | ||||
r1085 | <h3>${_('Public journal')}</h3> | |||
${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')} | ||||
<div class="form"> | ||||
r2809 | ${h.hidden('auth_token',str(h.get_token()))} | |||
<div class="field"> | ||||
%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 | ||||
</div> | ||||
<div class="field" style="border:none;color:#888"> | ||||
<ul> | ||||
<li>${_('All actions made on this repository will be accessible to everyone in public journal')} | ||||
</li> | ||||
</ul> | ||||
</div> | ||||
r1085 | </div> | |||
${h.end_form()} | ||||
r1888 | ||||
r2726 | <h3>${_('Locking')}</h3> | |||
${h.form(url('repo_locking', repo_name=c.repo_info.repo_name),method='put')} | ||||
r708 | <div class="form"> | |||
<div class="fields"> | ||||
r2726 | %if c.repo_info.locked[0]: | |||
${h.submit('set_unlock' ,_('Unlock locked repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to unlock repository')+"');")} | ||||
${'Locked by %s on %s' % (h.person_by_id(c.repo_info.locked[0]),h.fmt_date(h.time_to_datetime(c.repo_info.locked[1])))} | ||||
%else: | ||||
${h.submit('set_lock',_('lock repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to lock repository')+"');")} | ||||
${_('Repository is not locked')} | ||||
%endif | ||||
r708 | </div> | |||
r1755 | <div class="field" style="border:none;color:#888"> | |||
<ul> | ||||
r2726 | <li>${_('Force locking on repository. Works only when anonymous access is disabled')} | |||
r1755 | </li> | |||
</ul> | ||||
r2815 | </div> | |||
r1888 | </div> | |||
r1755 | ${h.end_form()} | |||
r2459 | <h3>${_('Set as fork of')}</h3> | |||
r1755 | ${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')} | |||
<div class="form"> | ||||
<div class="fields"> | ||||
${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",)} | ||||
</div> | ||||
<div class="field" style="border:none;color:#888"> | ||||
<ul> | ||||
r2459 | <li>${_('''Manually set this repository as a fork of another from the list''')}</li> | |||
r1755 | </ul> | |||
r1888 | </div> | |||
r2815 | </div> | |||
r708 | ${h.end_form()} | |||
r2815 | ||||
r2726 | <h3>${_('Delete')}</h3> | |||
${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')} | ||||
<div class="form"> | ||||
<div class="fields"> | ||||
${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} | ||||
</div> | ||||
<div class="field" style="border:none;color:#888"> | ||||
<ul> | ||||
<li>${_('''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''')} | ||||
</li> | ||||
</ul> | ||||
</div> | ||||
</div> | ||||
r2815 | ${h.end_form()} | |||
r699 | </div> | |||
r1888 | </%def> | |||