From 52910ffcbc80b07ed27766e1a58837ae26db1fa9 Mon Sep 17 00:00:00 2001 From: jakub_figat Date: Thu, 24 Jul 2025 12:19:47 +0000 Subject: [PATCH] Add templates/history_range.html --- templates/history_range.html | 208 +++++++++++++++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 templates/history_range.html diff --git a/templates/history_range.html b/templates/history_range.html new file mode 100644 index 0000000..d115520 --- /dev/null +++ b/templates/history_range.html @@ -0,0 +1,208 @@ + + + + + Historia pogody - {{ city }} + + + + +

Historia pogody dla {{ city }}
od {{ start_date }} do {{ end_date }}

+ + {% if error %} +

{{ error }}

+ {% elif history %} + + + + + + + + + + + {% for i in range(history["time"]|length) %} + + + + + + + {% endfor %} + +
DataTemp. maks. (°C)Temp. min. (°C)Opady (mm)
{{ history["time"][i] }}{{ history["temperature_2m_max"][i] }}{{ history["temperature_2m_min"][i] }}{{ history["precipitation_sum"][i] }}
+ + + + + {% endif %} + + +