mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Added maintenance action to regenerate references
This commit is contained in:
@ -89,6 +89,10 @@ return [
|
||||
'maint_send_test_email_mail_text' => 'Congratulations! As you received this email notification, your email settings seem to be configured properly.',
|
||||
'maint_recycle_bin_desc' => 'Deleted shelves, books, chapters & pages are sent to the recycle bin so they can be restored or permanently deleted. Older items in the recycle bin may be automatically removed after a while depending on system configuration.',
|
||||
'maint_recycle_bin_open' => 'Open Recycle Bin',
|
||||
'maint_regen_references' => 'Regenerate References',
|
||||
'maint_regen_references_desc' => 'This action will rebuild the cross-item reference index within the database. This is usually handled automatically but this action can be useful to index old content or content added via unofficial methods.',
|
||||
'maint_regen_references_success' => 'Reference index has been regenerated!',
|
||||
'maint_timeout_command_note' => 'Note: This action can take time to run, which can lead to timeout issues in some web environments. As an alternative, this action be performed using a terminal command.',
|
||||
|
||||
// Recycle Bin
|
||||
'recycle_bin' => 'Recycle Bin',
|
||||
|
@ -25,9 +25,10 @@
|
||||
|
||||
<div id="image-cleanup" class="card content-wrap auto-height">
|
||||
<h2 class="list-heading">{{ trans('settings.maint_image_cleanup') }}</h2>
|
||||
<div class="grid half gap-xl">
|
||||
<div class="grid left-focus gap-xl">
|
||||
<div>
|
||||
<p class="small text-muted">{{ trans('settings.maint_image_cleanup_desc') }}</p>
|
||||
<p class="small text-muted italic">{{ trans('settings.maint_timeout_command_note') }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<form method="POST" action="{{ url('/settings/maintenance/cleanup-images') }}">
|
||||
@ -55,7 +56,7 @@
|
||||
|
||||
<div id="send-test-email" class="card content-wrap auto-height">
|
||||
<h2 class="list-heading">{{ trans('settings.maint_send_test_email') }}</h2>
|
||||
<div class="grid half gap-xl">
|
||||
<div class="grid left-focus gap-xl">
|
||||
<div>
|
||||
<p class="small text-muted">{{ trans('settings.maint_send_test_email_desc') }}</p>
|
||||
</div>
|
||||
@ -68,5 +69,21 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="regenerate-references" class="card content-wrap auto-height">
|
||||
<h2 class="list-heading">{{ trans('settings.maint_regen_references') }}</h2>
|
||||
<div class="grid left-focus gap-xl">
|
||||
<div>
|
||||
<p class="small text-muted">{{ trans('settings.maint_regen_references_desc') }}</p>
|
||||
<p class="small text-muted italic">{{ trans('settings.maint_timeout_command_note') }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<form method="POST" action="{{ url('/settings/maintenance/regenerate-references') }}">
|
||||
{!! csrf_field() !!}
|
||||
<button class="button outline">{{ trans('settings.maint_regen_references') }}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
|
Reference in New Issue
Block a user