From 47f59cfe19e7d4cc43b4a19c746504016b0881d8 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 23 Jan 2024 09:20:21 +0100 Subject: Create settings applied template, replace incoming by chat --- templates/chat.html | 6 ++++++ templates/head.html | 6 +++--- templates/incoming.html | 6 ------ templates/settings_applied.html | 13 +++++++++++++ 4 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 templates/chat.html delete mode 100644 templates/incoming.html create mode 100644 templates/settings_applied.html (limited to 'templates') diff --git a/templates/chat.html b/templates/chat.html new file mode 100644 index 0000000..584bde5 --- /dev/null +++ b/templates/chat.html @@ -0,0 +1,6 @@ +{% include "head.html" %} +
+

Chat

+
+{% include "foot.html" %} +{# vi:set et sw=2 ts=2: #} diff --git a/templates/head.html b/templates/head.html index 99a4bca..3c611ed 100644 --- a/templates/head.html +++ b/templates/head.html @@ -24,9 +24,9 @@ Dashboard - -
  • - Incoming + +
  • + Chat
  • diff --git a/templates/incoming.html b/templates/incoming.html deleted file mode 100644 index 2a43623..0000000 --- a/templates/incoming.html +++ /dev/null @@ -1,6 +0,0 @@ -{% include "head.html" %} -
    - Incoming! -
    -{% include "foot.html" %} -{# vi:set et sw=2 ts=2: #} diff --git a/templates/settings_applied.html b/templates/settings_applied.html new file mode 100644 index 0000000..f536772 --- /dev/null +++ b/templates/settings_applied.html @@ -0,0 +1,13 @@ +{% include "head.html" %} +
    + {% if ok %} +

    Configuration updated

    +

    If you enabled or disabled tunnel, please restart the cats-radio-node process.

    + {% else %} +

    Configuration update failed

    +

    {{ error_message }}:

    +

    {{ error_reason }}:

    + {% endif %} +
    +{% include "foot.html" %} +{# vi:set et sw=2 ts=2: #} -- cgit v1.2.3