Fixed date format. Added time. Corrected template

This commit is contained in:
2018-11-30 22:11:00 +01:00
parent a24d793287
commit 2cefc5e5fd
2 changed files with 11 additions and 8 deletions
+9 -5
View File
@@ -33,13 +33,17 @@
</div>
<div class="right-pane">
<div class="meal-list">
<h2>{{meals[0].date}}</h2>
<h2>{{meals[0].meal_date}}</h2>
{% for meal in meals %}
{% if loop.index != 1 and (meal.date != meals[loop.index - 2].date) %}
<h2>{{meal.date}}</h2>
{% if loop.index != 1 and (meal.meal_date != meals[loop.index - 2].meal_date) %}
<h2>{{meal.meal_date}}</h2>
{% endif %}
<div class="meal">
<h5>{{meal.date}}</h5>
<div class="flex-card" onclick="location.href='/meal/{{meal.id}}';" style="cursor: pointer; width: 60%;">
<div class="people">
<p style="text-align: left;"><b>Cook</b> &nbsp;&nbsp; <img class="flex-small-thumb" src="{{url_for('static', filename=meal.kuk + '.png')}}" title="{{meal.kuk}}" align="middle" style="margin: " /></p>
<p style="text-align: left;"><b>Eaters</b> &nbsp;&nbsp; {% for e in meal.eaters %}<img class="flex-small-thumb" src="{{url_for('static', filename=e + '.png')}}" title="{{e}}" align="middle"/> {% endfor %}</p>
</div>
<span>Confirmed in {{meal.selection_deadline}}</span>
</div>
{% endfor%}
</div>