##// END OF EJS Templates
api: allow uncached content fetching....
api: allow uncached content fetching. - this is mostly to optimize for memory of indexer

File last commit:

r2081:63c02c14 default
r3479:58288c09 default
Show More
66 lines | 1.8 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / repos / repo_edit_maintenance.mako
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Maintenance')}</h3>
<div class="panel-body">
% if c.executable_tasks:
<h4>${_('Perform maintenance tasks for this repo')}</h4>
<span>${_('Following tasks will be performed')}:</span>
% for task in c.executable_tasks:
% endfor
${_('Maintenance can be automated by such api call. Can be called periodically in crontab etc.')}
${h.api_call_example(method='maintenance', args={"repoid": c.rhodecode_db_repo.repo_name})}
% else:
<h4>${_('No maintenance tasks for this repo available')}</h4>
% endif
<div id="results" style="display:none; padding: 10px 0px;"></div>
% if c.executable_tasks:
<div class="form">
<div class="fields">
<button class="btn btn-small btn-primary" onclick="executeTask();return false">
${_('Run Maintenance')}
% endif
executeTask = function() {
var btn = $(this);
$('#results').html('<h4>${_('Performing Maintenance')}...</h4>');
btn.attr('disabled', 'disabled');
var url = "${h.route_path('edit_repo_maintenance_execute', repo_name=c.rhodecode_db_repo.repo_name)}";
var success = function (data) {
var displayHtml = $('<pre></pre>');
ajaxGET(url, success, null);