##// END OF EJS Templates
diffs: use whole chunk diff to calculate if it's oversized or not....
diffs: use whole chunk diff to calculate if it's oversized or not. - This fixes an issue if a file is added that has very large number of small lines. In this case the time to detect if the diff should be limited was very very long and CPU intensive.

File last commit:

r2014:b776c5e0 default
r2070:7939c6bf default
Show More
repo_edit_statistics.mako
22 lines | 957 B | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / repos / repo_edit_statistics.mako
templating: use .mako as extensions for template files.
r1282 <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Repository statistics')}</h3>
</div>
<div class="panel-body">
repositories: rewrote whole admin section to pyramid....
r2014 ${h.secure_form(h.route_path('edit_repo_statistics_reset', repo_name=c.repo_info.repo_name), method='POST', request=request)}
templating: use .mako as extensions for template files.
r1282 <div class="form">
<div class="fields">
<div class="field" >
<dl class="dl-horizontal settings">
<dt>${_('Processed commits')}:</dt><dd>${c.stats_revision}/${c.repo_last_rev}</dd>
<dt>${_('Processed progress')}:</dt><dd>${c.stats_percentage}%</dd>
</dl>
</div>
${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset statistics'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")}
</div>
</div>
${h.end_form()}
</div>
</div>