##// END OF EJS Templates
chore(debug): improved logging for simplesvn
chore(debug): improved logging for simplesvn

File last commit:

r5395:c07fca24 default
r5399:9679a5bf default
Show More
settings_vcs.mako
53 lines | 1.7 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%namespace name="vcss" file="/base/vcs_settings.mako"/>
admin: ported settings controller to pyramid....
r2333 ${h.secure_form(h.route_path('admin_settings_vcs_update'), request=request)}
templating: use .mako as extensions for template files.
r1282 <div>
${vcss.vcs_settings_fields(
suffix='',
svn_tag_patterns=c.svn_tag_patterns,
svn_branch_patterns=c.svn_branch_patterns,
feat(repo_path-config): moved main storage location path into ini file. Fixes: RCCE-61
r5356 display_globals=True
templating: use .mako as extensions for template files.
r1282 )}
<div class="buttons">
${h.submit('save',_('Save settings'),class_="btn")}
${h.reset('reset',_('Reset'),class_="btn")}
</div>
</div>
${h.end_form()}
<script type="text/javascript">
function ajaxDeletePattern(pattern_id, field_id) {
admin: ported settings controller to pyramid....
r2333 var sUrl = "${h.route_path('admin_settings_vcs_svn_pattern_delete')}";
templating: use .mako as extensions for template files.
r1282 var callback = function (o) {
var elem = $("#"+field_id);
elem.remove();
};
var postData = {
'delete_svn_pattern': pattern_id,
'csrf_token': CSRF_TOKEN
};
var request = $.post(sUrl, postData)
.done(callback)
.fail(function (data, textStatus, errorThrown) {
alert("Error while deleting hooks.\nError code {0} ({1}). URL: {2}".format(data.status,data.statusText,$(this)[0].url));
});
};
$(document).ready(function() {
var unlockpath = function() {
$('#path_unlock_icon').removeClass('icon-lock').addClass('icon-unlock');
$('#paths_root_path').removeAttr('readonly').removeClass('disabled');
};
$('#path_unlock').on('click', function(e) {
unlockpath();
});
if ($('.locked_input').children().hasClass('error-message')) {
unlockpath();
}
});
</script>