Browse Source

add 'danger zone' links in site-settings.html template.

Links point to sections for manaully deleting files in the /storage
directory (without database interaction) and deleting database entries (without
storage file interaction). These sections are marked as 'danger zone' because
they should be used carefully and only if the site's storage files and database
have become out-of-sync. with each other.

The back-end functionality has not been implemented yet.
stable
Craig Oates 1 year ago
parent
commit
fa70b7e290
  1. 28
      templates/user/site-settings.html

28
templates/user/site-settings.html

@ -276,6 +276,34 @@
<p class="be-warning">
<strong>Be careful here. You can break the website and lose data.</strong>
</p>
<p class="be-gui-form-hint">
<strong>This is a link -- nothing is deleted if you press this.</strong> Use
this to rename/delete files which are out-of-sync. with the site's
database.
</p>
<a class="be-gui-link danger"
title="Click to manually edit files stored on the website"
href="/danger/manage-files">
<img alt="Manage files"
src="/images/icons/edit-entry.png">
Manage Files
</a>
<br>
<p class="be-gui-form-hint">
<strong>This is a link -- nothing is deleted if you press this.</strong> Use
this to delete Archive Entries and Pages stored in the database when
the files it is tracking cannot be found (another out-of-sync. error).
</p>
<a class="be-gui-link danger"
title="Click to delete entries in the website's database"
href="/danger/manage-database-entries">
<img alt="Delete DB entries"
src="/images/icons/delete.png">
Delete Database Entries
</a>
<form class="be-gui-form"
action="/danger/repopulate-search-db"

Loading…
Cancel
Save