From dcfce54bb9a3accf5605cf83fffe47adf8d22f4e Mon Sep 17 00:00:00 2001 From: Rodrigo Boufleur Date: Sat, 30 Nov 2024 22:11:40 +0000 Subject: [PATCH] refactor(backend/newsletter/templates/results.html): Refactor email template with results Datetime are better configured --- backend/newsletter/templates/results.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/newsletter/templates/results.html b/backend/newsletter/templates/results.html index f98e1ec4..33b6e8c7 100644 --- a/backend/newsletter/templates/results.html +++ b/backend/newsletter/templates/results.html @@ -17,7 +17,7 @@
+ style="margin: 0 auto; max-width: 95%; background-color: #ffffff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);"> @@ -33,27 +33,27 @@ {% for row in data %} - - - - - - -
+ {{ row.date_time|default:"-" }} + {{row.name|default:"-" }} + {% if row.velocity %} {{ row.velocity|floatformat:1 }} {% else %} - {% endif %} + {% if row.closest_approach %} {{ row.closest_approach|floatformat:3 }} {% else %} - {% endif %} + {% if row.closest_approach_uncertainty_km %} {% if row.closest_approach_uncertainty_km > 12500 %} Very High @@ -64,14 +64,14 @@ - {% endif %} + {% if row.gaia_magnitude %} {{ row.gaia_magnitude|floatformat:1 }} {% else %} - {% endif %} + [URL]