settings_mapping.mako
45 lines
| 1.8 KiB
| application/x-mako
|
MakoHtmlLexer
r5619 | ||||
r1282 | ||||
<div class="panel panel-default"> | ||||
<div class="panel-heading"> | ||||
r5619 | <h3 class="panel-title">${_('Import new repository groups and repositories')}</h3> | |||
r1282 | </div> | |||
<div class="panel-body"> | ||||
r5619 | ${h.secure_form(h.route_path('admin_settings_mapping_create'), request=request)} | |||
r5275 | <p> | |||
r5619 | ${_('This function will scan all data under the current storage path location at')} <code>${c.storage_path}</code><br/> | |||
${_('Each folder will be imported as a new repository group, and each repository found will be also imported to root level or corresponding repository group')} | ||||
r5275 | </p> | |||
r1282 | <div class="checkbox"> | |||
${h.checkbox('invalidate',True)} | ||||
<label for="invalidate"> ${_('Invalidate cache for all repositories')}</label> | ||||
</div> | ||||
<span class="help-block">${_('Each cache data for repositories will be cleaned with this option selected. Use this to reload data and clear cache keys.')}</span> | ||||
<div class="buttons"> | ||||
r5619 | ${h.submit('rescan',_('Scan filesystem'),class_="btn")} | |||
r1282 | </div> | |||
r5619 | ${h.end_form()} | |||
r1282 | </div> | |||
</div> | ||||
r5619 | <div class="panel panel-default"> | |||
<div class="panel-heading"> | ||||
<h3 class="panel-title">${_('Cleanup removed Repository Groups or Repositories')}</h3> | ||||
</div> | ||||
<div class="panel-body"> | ||||
${h.secure_form(h.route_path('admin_settings_mapping_cleanup'), request=request)} | ||||
<p> | ||||
${_('This function will scan all data under the current storage path location at')} <code>${c.storage_path}</code> | ||||
${_('Then it will remove all repository groups and repositories that are no longer present in the filesystem.')} | ||||
</p> | ||||
<div class="buttons"> | ||||
${h.submit('rescan',_('Cleanup filesystem'),class_="btn btn-danger")} | ||||
</div> | ||||
${h.end_form()} | ||||
</div> | ||||
</div> | ||||