From a0fa4a9d4d40931ad520b742927985ba11fe0a98 Mon Sep 17 00:00:00 2001 From: Davide Bongiovanni Date: Sat, 1 Dec 2018 18:25:19 +0100 Subject: [PATCH] Same as before --- templates/meal_list.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/meal_list.html b/templates/meal_list.html index 35c662b..666dca9 100644 --- a/templates/meal_list.html +++ b/templates/meal_list.html @@ -33,15 +33,15 @@
-

{{meals[0].meal_date}}

+

{{meals[0].meal_friendly_date}}

{% for meal in meals %} - {% if loop.index != 1 and (meal.meal_date != meals[loop.index - 2].meal_date) %} -

{{meal.meal_date}}

+ {% if loop.index != 1 and (meal.meal_friendly_date != meals[loop.index - 2].meal_friendly_date) %} +

{{meal.meal_friendly_date}}

{% endif %}
{{meal.meal_time}}

{% if meal.kuk != "" %}    WILL{% else %}    SHOULD{% endif%} cook for
{% for e in meal.eaters %}  {% endfor %}

- {% if meal.selection_deadline != 'Deadline passed' %}Confirmed in {% endif %}{{meal.selection_deadline}} + {% if meal.friendly_selection_deadline != '' %}Confirmed in {{meal.friendly_selection_deadline}}{% else %}Confirmed.{% endif %}
{% endfor%}