##// END OF EJS Templates
fix(permissions): added a common way to update private flag via repo model...
fix(permissions): added a common way to update private flag via repo model - this allows to have a one and only one way to control the flag with the business logic shared - added test for that - changed view to use this method instead of DB update and custom permissions flush - fixed a case when update of repo settings didn't flush permissions actually while it should when private flag changed

File last commit:

r2105:4ad1a937 default
r5551:5b9b5ed2 default
Show More
repo_edit_statistics.mako
22 lines | 958 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">
forms: unified usage of h.secure_form. Make sure we ALWAYS pass in...
r2105 ${h.secure_form(h.route_path('edit_repo_statistics_reset', repo_name=c.rhodecode_db_repo.repo_name), 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>
apps: removed deprecated usage of c.repo_info
r2081 ${h.submit('reset_stats_%s' % c.rhodecode_db_repo.repo_name,_('Reset statistics'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")}
templating: use .mako as extensions for template files.
r1282 </div>
</div>
${h.end_form()}
</div>
</div>