2021-08-22 08:15:58 -04:00
|
|
|
@extends('layouts.simple')
|
2018-05-27 14:40:07 -04:00
|
|
|
|
|
|
|
@section('body')
|
|
|
|
<div class="container small">
|
|
|
|
|
2022-03-26 17:36:05 -04:00
|
|
|
@include('settings.parts.navbar', ['selected' => 'maintenance'])
|
2018-05-27 14:40:07 -04:00
|
|
|
|
2020-11-07 08:58:23 -05:00
|
|
|
<div class="card content-wrap auto-height pb-xl">
|
|
|
|
<h2 class="list-heading">{{ trans('settings.recycle_bin') }}</h2>
|
|
|
|
<div class="grid half gap-xl">
|
|
|
|
<div>
|
|
|
|
<p class="small text-muted">{{ trans('settings.maint_recycle_bin_desc') }}</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="grid half no-gap mb-m">
|
|
|
|
<p class="mb-xs text-bookshelf">@icon('bookshelf'){{ trans('entities.shelves') }}: {{ $recycleStats['bookshelf'] }}</p>
|
|
|
|
<p class="mb-xs text-book">@icon('book'){{ trans('entities.books') }}: {{ $recycleStats['book'] }}</p>
|
|
|
|
<p class="mb-xs text-chapter">@icon('chapter'){{ trans('entities.chapters') }}: {{ $recycleStats['chapter'] }}</p>
|
|
|
|
<p class="mb-xs text-page">@icon('page'){{ trans('entities.pages') }}: {{ $recycleStats['page'] }}</p>
|
|
|
|
</div>
|
|
|
|
<a href="{{ url('/settings/recycle-bin') }}" class="button outline">{{ trans('settings.maint_recycle_bin_open') }}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-02-02 10:49:57 -05:00
|
|
|
<div id="image-cleanup" class="card content-wrap auto-height">
|
|
|
|
<h2 class="list-heading">{{ trans('settings.maint_image_cleanup') }}</h2>
|
2022-08-29 12:30:26 -04:00
|
|
|
<div class="grid left-focus gap-xl">
|
2019-02-02 10:49:57 -05:00
|
|
|
<div>
|
2019-04-07 06:34:40 -04:00
|
|
|
<p class="small text-muted">{{ trans('settings.maint_image_cleanup_desc') }}</p>
|
2022-08-29 12:30:26 -04:00
|
|
|
<p class="small text-muted italic">{{ trans('settings.maint_timeout_command_note') }}</p>
|
2019-02-02 10:49:57 -05:00
|
|
|
</div>
|
|
|
|
<div>
|
2019-08-04 09:26:39 -04:00
|
|
|
<form method="POST" action="{{ url('/settings/maintenance/cleanup-images') }}">
|
2019-02-02 10:49:57 -05:00
|
|
|
{!! csrf_field() !!}
|
|
|
|
<input type="hidden" name="_method" value="DELETE">
|
2020-11-07 08:58:23 -05:00
|
|
|
<div class="mb-s">
|
2019-02-02 10:49:57 -05:00
|
|
|
@if(session()->has('cleanup-images-warning'))
|
2019-04-07 06:34:40 -04:00
|
|
|
<p class="text-neg">
|
2019-02-02 10:49:57 -05:00
|
|
|
{{ session()->get('cleanup-images-warning') }}
|
|
|
|
</p>
|
|
|
|
<input type="hidden" name="ignore_revisions" value="{{ session()->getOldInput('ignore_revisions', 'false') }}">
|
|
|
|
<input type="hidden" name="confirm" value="true">
|
|
|
|
@else
|
2020-12-18 17:54:53 -05:00
|
|
|
<label class="flex-container-row">
|
|
|
|
<div class="mr-s"><input type="checkbox" name="ignore_revisions" value="true"></div>
|
|
|
|
<div>{{ trans('settings.maint_delete_images_only_in_revisions') }}</div>
|
2019-02-02 10:49:57 -05:00
|
|
|
</label>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<button class="button outline">{{ trans('settings.maint_image_cleanup_run') }}</button>
|
|
|
|
</form>
|
2018-05-27 14:40:07 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-10-15 12:41:08 -04:00
|
|
|
<div id="send-test-email" class="card content-wrap auto-height">
|
|
|
|
<h2 class="list-heading">{{ trans('settings.maint_send_test_email') }}</h2>
|
2022-08-29 12:30:26 -04:00
|
|
|
<div class="grid left-focus gap-xl">
|
2019-10-15 12:41:08 -04:00
|
|
|
<div>
|
|
|
|
<p class="small text-muted">{{ trans('settings.maint_send_test_email_desc') }}</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<form method="POST" action="{{ url('/settings/maintenance/send-test-email') }}">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
<button class="button outline">{{ trans('settings.maint_send_test_email_run') }}</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-08-29 12:30:26 -04:00
|
|
|
<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>
|
|
|
|
|
2018-05-27 14:40:07 -04:00
|
|
|
</div>
|
|
|
|
@stop
|