From 02be39b6ed8069588fdb4475c2194b6dc9d583d9 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 1 Aug 2023 00:30:11 +0700 Subject: [PATCH] hide/reveal apprise links --- .../home/templates/home/settings.html | 29 ++++++++++++++++--- tubearchivist/static/script.js | 6 ++-- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/tubearchivist/home/templates/home/settings.html b/tubearchivist/home/templates/home/settings.html index 73a0bc3..e9c2311 100644 --- a/tubearchivist/home/templates/home/settings.html +++ b/tubearchivist/home/templates/home/settings.html @@ -178,7 +178,7 @@

Integrations

-

API token:

+

API token:

{{ api_token }}

@@ -252,7 +252,14 @@

Send notification on task completed:

-

Current notification urls: {{ config.scheduler.update_subscribed_notify }}

+ {% if config.scheduler.update_subscribed_notify %} +

stored notification links

+
+

{{ config.scheduler.update_subscribed_notify|linebreaks }}

+
+ {% else %} +

Current notification urls: {{ config.scheduler.update_subscribed_notify }}

+ {% endif %} {{ scheduler_form.update_subscribed_notify }}
@@ -273,7 +280,14 @@

Send notification on task completed:

-

Current notification urls: {{ config.scheduler.download_pending_notify }}

+ {% if config.scheduler.download_pending_notify %} +

stored notification links

+
+

{{ config.scheduler.download_pending_notify|linebreaks }}

+
+ {% else %} +

Current notification urls: {{ config.scheduler.download_pending_notify }}

+ {% endif %} {{ scheduler_form.download_pending_notify }}
@@ -299,7 +313,14 @@

Send notification on task completed:

-

Current notification urls: {{ config.scheduler.check_reindex_notify }}

+ {% if config.scheduler.check_reindex_notify %} +

stored notification links

+
+

{{ config.scheduler.check_reindex_notify|linebreaks }}

+
+ {% else %} +

Current notification urls: {{ config.scheduler.check_reindex_notify }}

+ {% endif %} {{ scheduler_form.check_reindex_notify }}
diff --git a/tubearchivist/static/script.js b/tubearchivist/static/script.js index f4ca1e4..528b1a7 100644 --- a/tubearchivist/static/script.js +++ b/tubearchivist/static/script.js @@ -1318,9 +1318,9 @@ function getCookie(c_name) { // animations -function textReveal() { - let textBox = document.getElementById('text-reveal'); - let button = document.getElementById('text-reveal-button'); +function textReveal(button) { + let revealBox = button.parentElement.parentElement; + let textBox = revealBox.querySelector('#text-reveal'); let textBoxHeight = textBox.style.height; if (textBoxHeight === 'unset') { textBox.style.height = '0px';