From d3caed4241328258dee6190463bae8b4b5f3800d Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Mon, 28 Sep 2020 14:39:59 +0300 Subject: Use grouped predictions for dates in table --- iss/templates/index.html | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'iss/templates') diff --git a/iss/templates/index.html b/iss/templates/index.html index 5c498c7..e29da64 100644 --- a/iss/templates/index.html +++ b/iss/templates/index.html @@ -2,13 +2,14 @@ {% block content %} - + + @@ -19,18 +20,22 @@ - {% for pred in predictions %} - - - - - - - - - - - + {% for date, preds in predictions.items() %} + {% set date_loop = loop %} + {% for pred in preds %} + + {% if loop.first %}{% endif %} + + + + + + + + + + + {% endfor %} {% endfor %}
Total Rise Culminate Set
Date Length Time AzimuthTime Azimuth
{{ pred.length }}{{ pred.rise.time }}{{ pred.rise.azimuth }}{{ pred.culminate.time }}{{ pred.culminate.azimuth }}{{ pred.culminate.degrees }}{{ pred.culminate.distance }}{{ pred.set.time }}{{ pred.set.azimuth }}
{{ date }}{{ pred.length }}{{ pred.rise.time }}{{ pred.rise.azimuth }}{{ pred.culminate.time }}{{ pred.culminate.azimuth }}{{ pred.culminate.degrees }}{{ pred.culminate.distance }}{{ pred.set.time }}{{ pred.set.azimuth }}
-- cgit v1.3.1