1
0
Fork 0

Add datetime tooltip to TLE age in new observation page

This commit also removes the display of the TLE set number
since it's useless for most satellites (data field has maximum value
of 9999).
environments/stage/deployments/205
Fabian P. Schmidt 2018-09-15 15:49:19 +02:00 committed by Corey Shields
parent 3d366967ba
commit 9e8454d56e
1 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,7 @@
{% load staticfiles %}
{% load tags %}
{% load humanize %}
{% block title %} - New Observation{% endblock %}
@ -73,8 +74,10 @@
{% for satellite in satellites %}
<small class="tle" data-norad="{{ satellite.norad_cat_id }}">
{% if satellite.tle_no %}
Using TLE set {{ satellite.tle_no }} issued
{{ satellite.tle_epoch|timesince }} ago
Using TLE fetched
<span data-toggle="tooltip" data-placement="bottom" title="{{ satellite.tle_epoch|date:"Y-m-d H:i:s" }}">
{{ satellite.tle_epoch|naturaltime }}
</span>
{% endif %}
</small>
{% endfor %}