From 3f212821140b4a36cd5765668fa496b1310516f7 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sat, 22 Oct 2022 18:57:44 +0100 Subject: [PATCH] update /user/site-settings.html template (initial 'danger zone'). This commit establishes the 'danger zone' in the site's settings page. This will need to be added to over time. This commit set-ups the 're-populate search DB' feature but the back-end is not yet implemented. --- templates/user/site-settings.html | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/templates/user/site-settings.html b/templates/user/site-settings.html index 2d134f8..d7951a5 100644 --- a/templates/user/site-settings.html +++ b/templates/user/site-settings.html @@ -267,5 +267,37 @@ Save Snippet + +
+ + {% if roles.administrator %} +
+

Danger Zone

+

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

+
+ +

+ If you find Archive Entry thumbnails are no longer loading or + you're seeing '404' errors when clicking throught to an Archive + Entry, click the button below to re-sync. this website's + database with the 'Search Service' database. +

+ +
+
+ {% endif %} {% endblock %}