diff options
| author | Yuval Adam <_@yuv.al> | 2020-09-27 17:40:12 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2020-09-27 17:40:12 +0300 |
| commit | b120c61343b2f738b7d19fde8c92fbcc377f9441 (patch) | |
| tree | 8c400d43c2a2882a968f038e83cd7b9c2c56e430 /iss/templates | |
| parent | 89894bf60a95e7f52717856053738a56d736d341 (diff) | |
Initial prediction rendering in template
Diffstat (limited to 'iss/templates')
| -rw-r--r-- | iss/templates/base.html | 3 | ||||
| -rw-r--r-- | iss/templates/index.html | 32 |
2 files changed, 33 insertions, 2 deletions
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 @@ </head> <body class="bg-near-black near-white"> <div class="pa4 mw7 center"> + <h1 class="f1 moon-gray">ISS Pass Predictions</h1> + <p class="light-red">Upcoming passes of the <a href="https://en.wikipedia.org/wiki/International_Space_Station" class="link red dim">International Space Station</a> at your location over the next 10 days.</p> + {% 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 %} -<h1 class="f1 moon-gray">ISS Pass Predictions</h1> -<p class="light-red">Upcoming passes of the <a href="https://en.wikipedia.org/wiki/International_Space_Station" class="link red dim">International Space Station</a> at your location over the next 10 days.</p> +<table class="ba tl pa1"> + <tr class="ba tc pa1 f3"> + <th colspan="2">Rise</th> + <th colspan="4">Culminate</th> + <th colspan="2">Set</th> + </tr> + <tr class="pa1 f4"> + <th>Time</th> + <th>Azimuth</th> + <th>Time</th> + <th>Azimuth</th> + <th>Elevation</th> + <th>Distance</th> + <th>Time</th> + <th>Azimuth</th> + </tr> + {% for pred in predictions %} + <tr class="pa1"> + <td>{{ pred.rise.time }}</td> + <td>{{ pred.rise.azimuth }}</td> + <td>{{ pred.culminate.time }}</td> + <td>{{ pred.culminate.azimuth }}</td> + <td>{{ pred.culminate.degrees }}</td> + <td>{{ pred.culminate.distance }}</td> + <td>{{ pred.set.time }}</td> + <td>{{ pred.set.azimuth }}</td> + </tr> + {% endfor %} + +</table> {% endblock %} |
