From b120c61343b2f738b7d19fde8c92fbcc377f9441 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Sun, 27 Sep 2020 17:40:12 +0300 Subject: Initial prediction rendering in template --- iss/templates/base.html | 3 +++ iss/templates/index.html | 32 ++++++++++++++++++++++++++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) (limited to 'iss/templates') diff --git a/iss/templates/base.html b/iss/templates/base.html index 546b27a..952f948 100644 --- a/iss/templates/base.html +++ b/iss/templates/base.html @@ -12,6 +12,9 @@
+

ISS Pass Predictions

+

Upcoming passes of the International Space Station at your location over the next 10 days.

+ {% block content %} {% endblock %} diff --git a/iss/templates/index.html b/iss/templates/index.html index a02b312..6c93254 100644 --- a/iss/templates/index.html +++ b/iss/templates/index.html @@ -1,6 +1,34 @@ {% extends "base.html" %} {% block content %} -

ISS Pass Predictions

-

Upcoming passes of the International Space Station at your location over the next 10 days.

+ + + + + + + + + + + + + + + + + {% for pred in predictions %} + + + + + + + + + + + {% endfor %} + +
RiseCulminateSet
TimeAzimuthTimeAzimuthElevationDistanceTimeAzimuth
{{ pred.rise.time }}{{ pred.rise.azimuth }}{{ pred.culminate.time }}{{ pred.culminate.azimuth }}{{ pred.culminate.degrees }}{{ pred.culminate.distance }}{{ pred.set.time }}{{ pred.set.azimuth }}
{% endblock %} -- cgit v1.3.1