##// END OF EJS Templates
docs: updated configuration for nginx and reverse proxy.
docs: updated configuration for nginx and reverse proxy.

File last commit:

r2105:4ad1a937 default
r3326:e2b04156 default
Show More
repo_edit_vcs.mako
73 lines | 2.7 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%namespace name="vcss" file="/base/vcs_settings.mako"/>
<div id="repo_vcs_settings" class="${'inherited' if c.inherit_global_settings else ''}">
forms: unified usage of h.secure_form. Make sure we ALWAYS pass in...
r2105 ${h.secure_form(h.route_path('edit_repo_vcs_update', repo_name=c.rhodecode_db_repo.repo_name), request=request)}
templating: use .mako as extensions for template files.
r1282 <div class="form panel panel-default">
<div class="fields panel-body">
<div class="field">
<div class="label label-checkbox">
<label for="inherit_global_settings">${_('Inherit from global settings')}:</label>
</div>
<div class="checkboxes">
${h.checkbox('inherit_global_settings',value=True)}
helper-blocks: fix pre formatting only for auth plugin helper texts....
r1470 <span class="help-block">${h.literal(_('Select to inherit global vcs settings.'))}</span>
templating: use .mako as extensions for template files.
r1282 </div>
</div>
</div>
</div>
<div id="inherit_overlay_vcs_default">
<div>
${vcss.vcs_settings_fields(
suffix='_inherited',
svn_tag_patterns=c.global_svn_tag_patterns,
svn_branch_patterns=c.global_svn_branch_patterns,
apps: removed deprecated usage of c.repo_info
r2081 repo_type=c.rhodecode_db_repo.repo_type,
templating: use .mako as extensions for template files.
r1282 disabled='disabled'
)}
</div>
</div>
<div id="inherit_overlay_vcs_custom">
<div>
${vcss.vcs_settings_fields(
suffix='',
svn_tag_patterns=c.svn_tag_patterns,
svn_branch_patterns=c.svn_branch_patterns,
apps: removed deprecated usage of c.repo_info
r2081 repo_type=c.rhodecode_db_repo.repo_type
templating: use .mako as extensions for template files.
r1282 )}
</div>
</div>
<div class="buttons">
${h.submit('save',_('Save settings'),class_="btn")}
${h.reset('reset',_('Reset'),class_="btn")}
</div>
${h.end_form()}
</div>
<script type="text/javascript">
function ajaxDeletePattern(pattern_id, field_id) {
apps: removed deprecated usage of c.repo_info
r2081 var sUrl = "${h.route_path('edit_repo_vcs_svn_pattern_delete', repo_name=c.rhodecode_db_repo.repo_name)}";
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));
});
}
$('#inherit_global_settings').on('change', function(e){
$('#repo_vcs_settings').toggleClass('inherited', this.checked);
});
</script>