Replace pages' use of the options call with directly building the HTML components using templates, as the syntax is much nicer. Use a common set of data provided to all modules via pagetemplate.py instead of passing things like web_ui_options around. Closes #153

This commit is contained in:
Ian Renton
2026-09-25 21:22:31 +01:00
parent 4df00c321c
commit 8de163469b
27 changed files with 493 additions and 534 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
{% extends "skeleton.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/css/style.css?v=1790344336" type="text/css">
<link rel="stylesheet" href="/static/css/style.css?v=1790367751" type="text/css">
<link href="/static/vendor/css/bootstrap-5.3.8.min.css" rel="stylesheet">
<link href="/static/vendor/css/fontawesome-6.7.2.min.css" rel="stylesheet">
<link href="/static/vendor/css/solid-6.7.2.min.css" rel="stylesheet">
@@ -16,10 +16,10 @@
window.fetchEventSource = fetchEventSource;
</script>
<script src="/static/js/utils.js?v=1790344336"></script>
<script src="/static/js/ui-ham.js?v=1790344336"></script>
<script src="/static/js/geo.js?v=1790344336"></script>
<script src="/static/js/common.js?v=1790344336"></script>
<script src="/static/js/utils.js?v=1790367751"></script>
<script src="/static/js/ui-ham.js?v=1790367751"></script>
<script src="/static/js/geo.js?v=1790367751"></script>
<script src="/static/js/common.js?v=1790367751"></script>
{% end %}
{% block body %}
<div class="container">
@@ -43,7 +43,7 @@
class="fa-solid fa-ruler-vertical"></i> Bands</a></li>
<li class="nav-item ms-4"><a href="/alerts" class="nav-link" id="nav-link-alerts"><i
class="fa-solid fa-clock"></i> Upcoming</a></li>
{% if allow_spotting %}
{% if options["spot_allowed"] %}
<li class="nav-item ms-4"><a href="/add-spot" class="nav-link" id="nav-link-add-spot"><i
class="fa-solid fa-comment"></i> Add&nbsp;Spot</a></li>
{% end %}