diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-01-23 09:20:21 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-01-23 09:21:53 +0100 |
commit | 47f59cfe19e7d4cc43b4a19c746504016b0881d8 (patch) | |
tree | c19ad3199769a2daea1861d3e6ae612e40061ca7 /templates | |
parent | 8671c1bd2f89dc83c4d495ae0b0e8c814661cc74 (diff) | |
download | cats-radio-node-47f59cfe19e7d4cc43b4a19c746504016b0881d8.tar.gz cats-radio-node-47f59cfe19e7d4cc43b4a19c746504016b0881d8.tar.bz2 cats-radio-node-47f59cfe19e7d4cc43b4a19c746504016b0881d8.zip |
Create settings applied template, replace incoming by chat
Diffstat (limited to 'templates')
-rw-r--r-- | templates/chat.html (renamed from templates/incoming.html) | 2 | ||||
-rw-r--r-- | templates/head.html | 6 | ||||
-rw-r--r-- | templates/settings_applied.html | 13 |
3 files changed, 17 insertions, 4 deletions
diff --git a/templates/incoming.html b/templates/chat.html index 2a43623..584bde5 100644 --- a/templates/incoming.html +++ b/templates/chat.html @@ -1,6 +1,6 @@ {% include "head.html" %} <div class="content"> - Incoming! + <h1>Chat</h1> </div> {% 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 @@ <i class="w-8 fa fa-home" aria-hidden="true"></i><span>Dashboard</span> </li> </a> - <a href="/incoming" class=""> - <li class="rounded-md mt-1 p-3 {% if page == ActivePage::Incoming %} bg-sky-200 text-sky-900 {% endif %} hover:bg-sky-300"> - <i class="w-8 fa fa-inbox" aria-hidden="true"></i><span>Incoming</span> + <a href="/chat" class=""> + <li class="rounded-md mt-1 p-3 {% if page == ActivePage::Chat %} bg-sky-200 text-sky-900 {% endif %} hover:bg-sky-300"> + <i class="w-8 fa fa-comments" aria-hidden="true"></i><span>Chat</span> </li> </a> <a href="/send" class=""> 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" %} +<div class="content"> + {% if ok %} + <h1>Configuration updated</h1> + <p>If you enabled or disabled tunnel, please restart the cats-radio-node process.</p> + {% else %} + <h1>Configuration update failed</h1> + <p>{{ error_message }}:</p> + <p>{{ error_reason }}:</p> + {% endif %} +</div> +{% include "foot.html" %} +{# vi:set et sw=2 ts=2: #} |