##// END OF EJS Templates
merged dev into stable
merged dev into stable

File last commit:

r3960:5293d4bb merge default
r3965:5aa571d5 merge default
Show More
repo_edit.html
388 lines | 15.4 KiB | text/html | HtmlLexer
renamed project to rhodecode
r547 ## -*- coding: utf-8 -*-
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 ##
## See also repo_settings.html
##
renamed project to rhodecode
r547 <%inherit file="/base/base.html"/>
<%def name="title()">
improved title consistency...
r3582 ${_('Edit repository')} ${c.repo_info.repo_name} &middot; ${c.rhodecode_name}
renamed project to rhodecode
r547 </%def>
<%def name="breadcrumbs_links()">
repo edit UI improvements
r3562 ${_('Settings')}
renamed project to rhodecode
r547 </%def>
<%def name="page_nav()">
Mads Kiilerich
use valid options for the top menu: repositories, journal, search and admin
r3603 ${self.menu('admin')}
renamed project to rhodecode
r547 </%def>
<%def name="main()">
Mads Kiilerich
Stylistic cleanup - mostly formatting
r3552 ${self.context_bar('options')}
Code refactor for auth func, preparing for ldap support...
r699 <div class="box box-left">
renamed project to rhodecode
r547 <!-- box / title -->
<div class="title">
White-space cleanup
r1888 ${self.breadcrumbs()}
renamed project to rhodecode
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>
Small templates update
r703 <div class="input">
Code refactor for auth func, preparing for ldap support...
r699 ${h.text('repo_name',class_="medium")}
Show repo ID in settings
r3897 <span class="help-block">${_('Non-changeable id')}: ${c.repo_info.repo_id}</span>
renamed project to rhodecode
r547 </div>
#109, added optional clone uri when creating repo....
r1112 </div>
Mads Kiilerich
html: don't use tabs
r3197 <div class="field">
<div class="label">
<label for="clone_uri">${_('Clone uri')}:</label>
</div>
<div class="input">
${h.text('clone_uri',class_="medium")}
UI...
r2103 <span class="help-block">${_('Optional http[s] url from which repository should be cloned.')}</span>
Mads Kiilerich
html: don't use tabs
r3197 </div>
</div>
<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")}
UI...
r2103 <span class="help-block">${_('Optional select a group to put this repository into.')}</span>
Mads Kiilerich
html: don't use tabs
r3197 </div>
</div>
extended repo creation by repo type. fixed fork creation to maintain repo type.
r659 <div class="field">
<div class="label">
fix repo_edit form
r3064 <label for="repo_landing_rev">${_('Landing revision')}:</label>
Initial version of landing revisions ref #483...
r2459 </div>
<div class="input">
fix repo_edit form
r3064 ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")}
Initial version of landing revisions ref #483...
r2459 <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span>
</div>
whitespace cleanup
r2461 </div>
Initial version of landing revisions ref #483...
r2459 <div class="field">
renamed project to rhodecode
r547 <div class="label label-textarea">
fix repo_edit form
r3064 <label for="repo_description">${_('Description')}:</label>
renamed project to rhodecode
r547 </div>
<div class="textarea text-area editor">
fix repo_edit form
r3064 ${h.textarea('repo_description')}
UI...
r2103 <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span>
renamed project to rhodecode
r547 </div>
</div>
White-space cleanup
r1888
renamed project to rhodecode
r547 <div class="field">
<div class="label label-checkbox">
fix repo_edit form
r3064 <label for="repo_private">${_('Private repository')}:</label>
renamed project to rhodecode
r547 </div>
<div class="checkboxes">
fix repo_edit form
r3064 ${h.checkbox('repo_private',value="True")}
UI...
r2103 <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span>
renamed project to rhodecode
r547 </div>
</div>
fixes #62, added option to disable statistics for each repository
r810 <div class="field">
<div class="label label-checkbox">
fix repo_edit form
r3064 <label for="repo_enable_statistics">${_('Enable statistics')}:</label>
fixes #62, added option to disable statistics for each repository
r810 </div>
<div class="checkboxes">
fix repo_edit form
r3064 ${h.checkbox('repo_enable_statistics',value="True")}
UI...
r2103 <span class="help-block">${_('Enable statistics window on summary page.')}</span>
fixes #62, added option to disable statistics for each repository
r810 </div>
White-space cleanup
r1888 </div>
implemented #84 downloads can be enabled/disabled per each repository from now.
r962 <div class="field">
<div class="label label-checkbox">
fix repo_edit form
r3064 <label for="repo_enable_downloads">${_('Enable downloads')}:</label>
implemented #84 downloads can be enabled/disabled per each repository from now.
r962 </div>
<div class="checkboxes">
fix repo_edit form
r3064 ${h.checkbox('repo_enable_downloads',value="True")}
UI...
r2103 <span class="help-block">${_('Enable download menu on summary page.')}</span>
implemented #84 downloads can be enabled/disabled per each repository from now.
r962 </div>
White-space cleanup
r1888 </div>
renamed project to rhodecode
r547 <div class="field">
Implemented basic locking functionality....
r2726 <div class="label label-checkbox">
fix repo_edit form
r3064 <label for="repo_enable_locking">${_('Enable locking')}:</label>
Implemented basic locking functionality....
r2726 </div>
<div class="checkboxes">
fix repo_edit form
r3064 ${h.checkbox('repo_enable_locking',value="True")}
Implemented basic locking functionality....
r2726 <span class="help-block">${_('Enable lock-by-pulling on repository.')}</span>
</div>
White space cleanup
r2815 </div>
Implemented basic locking functionality....
r2726 <div class="field">
fixed bug when autocomplete could not display names (hidden by div)...
r581 <div class="label">
renamed project to rhodecode
r547 <label for="user">${_('Owner')}:</label>
</div>
UI...
r2103 <div class="input input-medium ac">
renamed project to rhodecode
r547 <div class="perm_ac">
${h.text('user',class_='yui-ac-input')}
UI...
r2103 <span class="help-block">${_('Change owner of this repository.')}</span>
renamed project to rhodecode
r547 <div id="owner_container"></div>
</div>
</div>
White-space cleanup
r1888 </div>
repository extra fields implementation...
r3308 %if c.visual.repository_fields:
## EXTRA FIELDS
%for field in c.repo_fields:
<div class="field">
<div class="label">
<label for="${field.field_key_prefixed}">${field.field_label} (${field.field_key}):</label>
</div>
<div class="input input-medium">
${h.text(field.field_key_prefixed, field.field_value, class_='medium')}
%if field.field_desc:
<span class="help-block">${field.field_desc}</span>
%endif
</div>
</div>
%endfor
%endif
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 <div class="buttons">
${h.submit('save',_('Save'),class_="ui-btn large")}
${h.reset('reset',_('Reset'),class_="ui-btn large")}
White-space cleanup
r1888 </div>
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 </div>
White-space cleanup
r1888 </div>
renamed project to rhodecode
r547 ${h.end_form()}
</div>
Code refactor for auth func, preparing for ldap support...
r699
<div class="box box-right">
<div class="title">
moved permission management into separate entity....
r3628 <h5>${_('Permissions')}</h5>
</div>
${h.form(url('set_repo_perm_member', repo_name=c.repo_info.repo_name),method='post')}
<div class="form">
<div class="fields">
<div class="field">
<div class="label">
<label for="input">${_('Permissions')}:</label>
</div>
<div class="input">
#749 and #516 Removed dupliciting of repo settings for rhodecode admins and repo admins...
r3629 ${h.hidden('repo_private')}
moved permission management into separate entity....
r3628 <%include file="repo_edit_perms.html"/>
</div>
</div>
<div class="buttons">
${h.submit('save',_('Save'),class_="ui-btn large")}
${h.reset('reset',_('Reset'),class_="ui-btn large")}
#749 and #516 Removed dupliciting of repo settings for rhodecode admins and repo admins...
r3629 </div>
moved permission management into separate entity....
r3628 </div>
</div>
#749 and #516 Removed dupliciting of repo settings for rhodecode admins and repo admins...
r3629 ${h.end_form()}
moved permission management into separate entity....
r3628 </div>
#749 and #516 Removed dupliciting of repo settings for rhodecode admins and repo admins...
r3629
moved permission management into separate entity....
r3628
<div class="box box-right" style="clear:right">
<div class="title">
repo edit UI improvements
r3562 <h5>${_('Advanced settings')}</h5>
Code refactor for auth func, preparing for ldap support...
r699 </div>
White-space cleanup
r1888
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 <h3>${_('Statistics')}</h3>
${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')}
<div class="form">
<div class="fields">
${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")}
implements #239 manual marking of repos as forks for admins
r1755 <div class="field" style="border:none;color:#888">
<ul>
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 <li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li>
<li>${_('Stats gathered')}: ${c.stats_percentage}%</li>
</ul>
</div>
</div>
</div>
${h.end_form()}
%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">
${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')+"');")}
<div class="field" style="border:none">
<ul>
<li><a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri}</a></li>
implements #239 manual marking of repos as forks for admins
r1755 </ul>
White space cleanup
r2815 </div>
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 </div>
</div>
${h.end_form()}
%endif
<h3>${_('Cache')}</h3>
${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')}
<div class="form">
<div class="fields">
${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")}
<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>
</div>
<div class="field" style="border:none;">
${_('List of cached values')}
<table>
<tr>
<th>${_('Prefix')}</th>
<th>${_('Key')}</th>
<th>${_('Active')}</th>
</tr>
%for cache in c.repo_info.cache_keys:
<tr>
Mads Kiilerich
invalidation: some documentation and refactoring
r3606 <td>${cache.get_prefix() or '-'}</td>
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 <td>${cache.cache_key}</td>
Mads Kiilerich
helpers: show boolean value of value as icon, not just the True and False singletons
r3627 <td>${h.boolicon(cache.cache_active)}</td>
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 </tr>
%endfor
</table>
</div>
</div>
</div>
${h.end_form()}
implements #239 manual marking of repos as forks for admins
r1755
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 <h3>${_('Public journal')}</h3>
${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')}
<div class="form">
${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>
</div>
${h.end_form()}
White space cleanup
r2815
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 <h3>${_('Locking')}</h3>
${h.form(url('repo_locking', repo_name=c.repo_info.repo_name),method='put')}
<div class="form">
<div class="fields">
%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:
Mads Kiilerich
Minor changes
r3717 ${h.submit('set_lock',_('Lock repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to lock repository')+"');")}
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 ${_('Repository is not locked')}
%endif
</div>
<div class="field" style="border:none;color:#888">
<ul>
<li>${_('Force locking on repository. Works only when anonymous access is disabled')}
</li>
</ul>
</div>
</div>
${h.end_form()}
<h3>${_('Set as fork of')}</h3>
${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")}
Mads Kiilerich
Minor changes
r3717 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="ui-btn",)}
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 </div>
Implemented basic locking functionality....
r2726 <div class="field" style="border:none;color:#888">
<ul>
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 <li>${_('''Manually set this repository as a fork of another from the list''')}</li>
Implemented basic locking functionality....
r2726 </ul>
</div>
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 </div>
${h.end_form()}
<h3>${_('Delete')}</h3>
${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')}
<div class="form">
<div class="fields">
<div class="field" style="border:none;color:#888">
## <div class="label">
## <label for="">${_('Remove repository')}:</label>
## </div>
<div class="checkboxes">
${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")}
%if c.repo_info.forks.count():
- ${ungettext('this repository has %s fork', 'this repository has %s forks', c.repo_info.forks.count()) % c.repo_info.forks.count()}
<input type="radio" name="forks" value="detach_forks" checked="checked"/> <label for="forks">${_('Detach forks')}</label>
<input type="radio" name="forks" value="delete_forks" /> <label for="forks">${_('Delete forks')}</label>
%endif
<ul>
<li>${_('This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need to fully delete it from file system please do it manually')}</li>
</ul>
</div>
</div>
Implemented basic locking functionality....
r2726 </div>
Mads Kiilerich
repository: cleanup and alignment of repository editing templates...
r3600 </div>
${h.end_form()}
Code refactor for auth func, preparing for ldap support...
r699 </div>
repository extra fields implementation...
r3308 ##TODO: this should be controlled by the VISUAL setting
%if c.visual.repository_fields:
<div class="box box-left" style="clear:left">
<!-- box / title -->
<div class="title">
<h5>${_('Extra fields')}</h5>
</div>
<div class="emails_wrap">
<table class="noborder">
%for field in c.repo_fields:
<tr>
<td>${field.field_label} (${field.field_key})</td>
<td>${field.field_type}</td>
<td>
${h.form(url('delete_repo_fields', repo_name=c.repo_info.repo_name, field_id=field.repo_field_id),method='delete')}
${h.submit('remove_%s' % field.repo_field_id, _('delete'), id="remove_field_%s" % field.repo_field_id,
class_="delete_icon action_button", onclick="return confirm('"+_('Confirm to delete this field: %s') % field.field_key+"');")}
${h.end_form()}
</td>
</tr>
%endfor
</table>
</div>
${h.form(url('create_repo_fields', repo_name=c.repo_info.repo_name),method='put')}
<div class="form">
<!-- fields -->
<div class="fields">
<div class="field">
<div class="label">
<label for="new_field_key">${_('New field key')}:</label>
</div>
<div class="input">
${h.text('new_field_key', class_='small')}
</div>
</div>
<div class="field">
<div class="label">
<label for="new_field_label">${_('New field label')}:</label>
</div>
<div class="input">
${h.text('new_field_label', class_='small', placeholder=_('Enter short label'))}
whitespace cleanup
r3315 </div>
repository extra fields implementation...
r3308 </div>
<div class="field">
<div class="label">
<label for="new_field_desc">${_('New field description')}:</label>
</div>
<div class="input">
${h.text('new_field_desc', class_='small', placeholder=_('Enter description of a field'))}
whitespace cleanup
r3315 </div>
repository extra fields implementation...
r3308 </div>
<div class="buttons">
${h.submit('save',_('Add'),class_="ui-btn large")}
${h.reset('reset',_('Reset'),class_="ui-btn large")}
</div>
</div>
</div>
${h.end_form()}
</div>
%endif
White-space cleanup
r1888 </%def>