Load events for the month view

This commit is contained in:
2018-06-29 16:14:35 +02:00
parent bac17faed2
commit a25e869eca
2 changed files with 19 additions and 3 deletions

View File

@@ -70,11 +70,11 @@
{%- endif %}
<td class="{% if day.month != calendar.timestamp.month %} other-month{% endif %}{% if day.date() == calendar.timestamp.date() %} today{% endif %}">
<span class="day-num">{{ day.day }}</span>
{% if day.date() == calendar.timestamp.date() %}
{% for event in calendar.day_events(day, user=current_user) %}
<div class="event">
This is a task
{{ event.title }}
</div>
{% endif %}
{% endfor %}
</td>
{% endfor %}
</tr>