comparison rhodecode/templates/admin/repos/repo_edit.html @ 708:b9bbc0d6e9f3 beta

added cache reset, stats reset, and delete into repository settings in admin. Some small template fixes
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 18 Nov 2010 01:55:51 +0100
parents 9c1ed03ef5db
children bd57d1cb9dc3
comparison
equal deleted inserted replaced
707:1105531ae572 708:b9bbc0d6e9f3
284 <div class="box box-right"> 284 <div class="box box-right">
285 <div class="title"> 285 <div class="title">
286 <h5>${_('Administration')}</h5> 286 <h5>${_('Administration')}</h5>
287 </div> 287 </div>
288 288
289 <div class="form"> 289 <h3>${_('Statistics')}</h3>
290 290
291 <h3>${_('Reset statistics')}</h3> 291 ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')}
292 <h3>${_('Reset cache')}</h3> 292 <div class="form">
293 <div class="fields">
294 ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="refresh_icon action_button",onclick="return confirm('Confirm to remove current statistics');")}
295
296 <div class="field">
297 <ul>
298 <li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li>
299 <li>${_('Percentage of stats gathered')}: ${c.stats_percentage} %</li>
300 </ul>
301 </div>
302
303 </div>
304 </div>
305 ${h.end_form()}
306
307 <h3>${_('Cache')}</h3>
308 ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')}
309 <div class="form">
310 <div class="fields">
311 ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="refresh_icon action_button",onclick="return confirm('Confirm to invalidate repository cache');")}
312 </div>
313 </div>
314 ${h.end_form()}
315
316
293 <h3>${_('Delete')}</h3> 317 <h3>${_('Delete')}</h3>
294 318 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')}
295 319 <div class="form">
296 320 <div class="fields">
297 </div> 321 ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
322 </div>
323 </div>
324 ${h.end_form()}
298 325
299 </div> 326 </div>
300 327
301 328
302 </%def> 329 </%def>