From aa685f4a2b7743ced2ceafc65538eb5457f5ee97 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Mon, 28 Sep 2020 19:08:12 +0300 Subject: Split passes endpoint --- iss/templates/passes.html | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 iss/templates/passes.html (limited to 'iss/templates/passes.html') diff --git a/iss/templates/passes.html b/iss/templates/passes.html new file mode 100644 index 0000000..e430c69 --- /dev/null +++ b/iss/templates/passes.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} + +{% block content %} +

Passes for {{ location.lat }}, {{ location.lng }}

+ + + + + + + + + + + + + + + + + + + + {% for date, preds in predictions.items() %} + {% set date_loop = loop %} + {% for pred in preds %} + + {% if loop.first %}{% endif %} + + + + + + + + + + + {% endfor %} + {% endfor %} + +
TotalRiseCulminateSet
DateLengthTimeAzimuthTimeAzimuthElevationDistanceTimeAzimuth
{{ date }}{{ pred.length }}{{ pred.rise.time }}{{ pred.rise.azimuth }} ({{ pred.rise.direction }}){{ pred.culminate.time }}{{ pred.culminate.azimuth }} ({{ pred.culminate.direction }}){{ pred.culminate.degrees }}{{ pred.culminate.distance }}{{ pred.set.time }}{{ pred.set.azimuth }} ({{ pred.set.direction }})
+{% endblock %} -- cgit v1.3.1