From fa70b7e2901f703a105707f7289652ee8360c91d Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sat, 22 Oct 2022 21:59:04 +0100 Subject: [PATCH] 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. --- templates/user/site-settings.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/templates/user/site-settings.html b/templates/user/site-settings.html index 77be09c..6bb0cdd 100644 --- a/templates/user/site-settings.html +++ b/templates/user/site-settings.html @@ -276,6 +276,34 @@

Be careful here. You can break the website and lose data.

+ +

+ This is a link -- nothing is deleted if you press this. Use + this to rename/delete files which are out-of-sync. with the site's + database. +

+ + Manage files + Manage Files + + +
+ +

+ This is a link -- nothing is deleted if you press this. 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). +

+ + Delete DB entries + Delete Database Entries +