##// END OF EJS Templates
user-groups: fix potential problem with group sync of external plugins....
user-groups: fix potential problem with group sync of external plugins. - when using external plugin we used to check for a parameter that set the sync mode. The problem is we only checked if the flag was there. So toggling sync on and off set the value and then left the key still set but with None. This confused the sync and thought the group should be synced !

File last commit:

r2105:4ad1a937 default
r2143:4314e88b default
Show More
defaults_repositories.mako
81 lines | 3.3 KiB | application/x-mako | MakoHtmlLexer
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Default Settings For New Repositories')}</h3>
</div>
<div class="panel-body">
${h.secure_form(h.route_path('admin_defaults_repositories_update'), request=request)}
<div class="form">
<!-- fields -->
<div class="fields">
<div class="field">
<div class="label">
<label for="default_repo_type">${_('Type')}:</label>
</div>
<div class="select">
${h.select('default_repo_type','hg',c.backends,class_="medium")}
</div>
</div>
<div class="field">
<div class="label label-checkbox">
<label for="default_repo_private">${_('Private Repository')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('default_repo_private',value="True")}
<span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span>
</div>
</div>
<div class="field">
<div class="label label-checkbox">
<label for="default_repo_enable_statistics">${_('Enable Statistics')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('default_repo_enable_statistics',value="True")}
<span class="help-block">${_('Enable a statistics window on the repository summary page.')}</span>
</div>
</div>
<div class="field">
<div class="label label-checkbox">
<label for="default_repo_enable_downloads">${_('Enable Downloads')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('default_repo_enable_downloads',value="True")}
<span class="help-block">${_('Enable the download option on the repository summary page.')}</span>
</div>
</div>
<div class="field">
<div class="label label-checkbox">
<label for="default_repo_enable_locking">${_('Enable Locking')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('default_repo_enable_locking',value="True")}
<span class="help-block">${_('Enable automatic repository locking. Pulling from a repository will lock it, and it is unlocked by pushing back by the same user.')}</span>
</div>
</div>
<div class="buttons">
${h.submit('save',_('Save'),class_="btn")}
</div>
</div>
</div>
${h.end_form()}
</div>
</div>
<script>
$(document).ready(function(){
$("#default_repo_type").select2({
containerCssClass: 'drop-menu',
dropdownCssClass: 'drop-menu-dropdown',
dropdownAutoWidth: true,
minimumResultsForSearch: -1
});
})
</script>