diff --git a/server/webserver.py b/server/webserver.py index e69f9dd..39b4767 100644 --- a/server/webserver.py +++ b/server/webserver.py @@ -79,6 +79,8 @@ class WebServer: {"template_name": "alerts", "web_server_metrics": self.web_server_metrics}), (r"/add-spot", PageTemplateHandler, {"template_name": "add_spot", "web_server_metrics": self.web_server_metrics}), + (r"/conditions", PageTemplateHandler, + {"template_name": "conditions", "web_server_metrics": self.web_server_metrics}), (r"/status", PageTemplateHandler, {"template_name": "status", "web_server_metrics": self.web_server_metrics}), (r"/about", PageTemplateHandler, {"template_name": "about", "web_server_metrics": self.web_server_metrics}), diff --git a/templates/about.html b/templates/about.html index 8ff4aff..6365dbf 100644 --- a/templates/about.html +++ b/templates/about.html @@ -67,7 +67,7 @@

This software is dedicated to the memory of Tom G1PJB, SK, a friend and colleague who sadly passed away around the time I started writing it in Autumn 2025. I was looking forward to showing it to you when it was done.

- + {% end %} \ No newline at end of file diff --git a/templates/add_spot.html b/templates/add_spot.html index 0a65c2d..db4cf5d 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -69,8 +69,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/alerts.html b/templates/alerts.html index f5caee3..0008152 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -50,18 +50,14 @@ -
- {% module Template("widgets/conditions-area-header.html", web_ui_options=web_ui_options) %} -
-
- - + + {% end %} \ No newline at end of file diff --git a/templates/bands.html b/templates/bands.html index 1c9e7f0..4803022 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -55,10 +55,6 @@ -
- {% module Template("widgets/conditions-area-header.html", web_ui_options=web_ui_options) %} -
-
@@ -66,9 +62,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index eb96968..9adddb8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -46,10 +46,10 @@ crossorigin="anonymous"> - - - - + + + + @@ -71,6 +71,7 @@ {% if allow_spotting %} {% end %} + diff --git a/templates/conditions.html b/templates/conditions.html new file mode 100644 index 0000000..f810bf3 --- /dev/null +++ b/templates/conditions.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% block content %} + +Coming soon! + + + + +{% end %} \ No newline at end of file diff --git a/templates/map.html b/templates/map.html index 6849c4c..6aba901 100644 --- a/templates/map.html +++ b/templates/map.html @@ -56,10 +56,6 @@ - -
- {% module Template("widgets/conditions-area-header.html", web_ui_options=web_ui_options) %} -
@@ -74,9 +70,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/spots.html b/templates/spots.html index cbccc69..32297d7 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -78,10 +78,6 @@ -
- {% module Template("widgets/conditions-area-header.html", web_ui_options=web_ui_options) %} -
-
@@ -91,9 +87,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/status.html b/templates/status.html index b9bc25c..840e0ff 100644 --- a/templates/status.html +++ b/templates/status.html @@ -3,8 +3,8 @@
- - + + {% end %} \ No newline at end of file diff --git a/templates/widgets/filters-display-buttons.html b/templates/widgets/filters-display-buttons.html index e25bbca..f6cf612 100644 --- a/templates/widgets/filters-display-buttons.html +++ b/templates/widgets/filters-display-buttons.html @@ -1,5 +1,4 @@
- - - + +
\ No newline at end of file diff --git a/webassets/js/common.js b/webassets/js/common.js index d3b3f4d..1945a82 100644 --- a/webassets/js/common.js +++ b/webassets/js/common.js @@ -183,13 +183,10 @@ function listenForOSThemeChange() { }); } -// Panel toggle functions. -// PANELS is the single registry of all collapsible panels. To add a new panel, add an entry here -// and provide named wrappers below. The toggle logic will automatically handle hiding other panels. +// Panel toggle functions const PANELS = [ - { area: "#filters-area", button: "#filters-button" }, - { area: "#display-area", button: "#display-button" }, - { area: "#conditions-area", button: "#conditions-button" }, + { area: "#filters-area",button: "#filters-button" }, + { area: "#display-area", button: "#display-button" }, ]; // Toggle a panel open or closed. If opening, all other visible panels are closed first. @@ -217,8 +214,6 @@ function toggleFiltersPanel() { togglePanel("#filters-area"); } function closeFiltersPanel() { closePanel("#filters-area"); } function toggleDisplayPanel() { togglePanel("#display-area"); } function closeDisplayPanel() { closePanel("#display-area"); } -function toggleConditionsPanel() { togglePanel("#conditions-area"); } -function closeConditionsPanel() { closePanel("#conditions-area"); } // Startup