From 3853c6aeb3f1993ca43ecb55abced65c919a88a8 Mon Sep 17 00:00:00 2001 From: Davide Bongiovanni Date: Sun, 2 Dec 2018 14:46:30 +0100 Subject: [PATCH] Adapted view meal page to newer backend --- templates/index.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/index.html b/templates/index.html index bf1d4fa..9c4defb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,7 @@ - Meal planned for {{meal_date}} - KUKAPP + Meal planned for {{meal.meal_friendly_date}} - KUKAPP @@ -29,34 +29,34 @@ {% endfor %}
-

When: {{date}}

+

When: {{meal.meal_friendly_date}}

Cook

- {% if cook.confirmed == "no" %} + {% if meal.kuk == "" %} -

If nobody volunteers,
will cook.

+

If nobody volunteers,
will cook.

VOLUNTEER
{% else %} - - {{ cook.name }} + + {{ meal.kuk }}
CONFIRMED
{% endif %}

Eaters

- {% for eater in eaters %} + {% for eater in meal.eaters %}
- {{ eater }} + {{ eater }}
{% endfor %} - {% if not current_user.name in eaters %} + {% if not current_user.name in eaters and current_user.name != meal.kuk %}
-
+
Add me
{% else %}
-
+
Remove me
{% endif %}