Same as before

master
Davide Bongiovanni 6 years ago
parent 0b760577c6
commit a0fa4a9d4d

@ -33,15 +33,15 @@
</div>
<div class="right-pane">
<div class="meal-list">
<h2>{{meals[0].meal_date}}</h2>
<h2>{{meals[0].meal_friendly_date}}</h2>
{% for meal in meals %}
{% if loop.index != 1 and (meal.meal_date != meals[loop.index - 2].meal_date) %}
<h2>{{meal.meal_date}}</h2>
{% if loop.index != 1 and (meal.meal_friendly_date != meals[loop.index - 2].meal_friendly_date) %}
<h2>{{meal.meal_friendly_date}}</h2>
{% endif %}
<div class="flex-card" onclick="location.href='/meal/{{meal.id}}';" style="cursor: pointer; width: 60%; justify-content: space-between;">
<span><b>{{meal.meal_time}}</b></span>
<p style="text-align: left;">{% if meal.kuk != "" %}<img class="flex-small-thumb" src="{{url_for('static', filename=meal.kuk + '.png')}}" title="{{meal.kuk}}" align="middle" style="margin: " /> &nbsp;&nbsp; <b>WILL</b>{% else %}<img class="flex-small-thumb" src="{{url_for('static', filename=meal.candidate + '.png')}}" title="{{meal.kuk}}" align="middle" style="margin: " /> &nbsp;&nbsp; <b>SHOULD</b>{% endif%} cook for <br>{% for e in meal.eaters %}<img class="flex-small-thumb" src="{{url_for('static', filename=e + '.png')}}" title="{{e}}" align="middle"/>&nbsp; {% endfor %}</p>
<span>{% if meal.selection_deadline != 'Deadline passed' %}Confirmed in {% endif %}{{meal.selection_deadline}}</span>
<span>{% if meal.friendly_selection_deadline != '' %}Confirmed in {{meal.friendly_selection_deadline}}{% else %}Confirmed.{% endif %}</span>
</div>
{% endfor%}
<h2> &nbsp; </h2>

Loading…
Cancel
Save