adjust jinja2 templates to handle cases of no description

This commit is contained in:
2022-12-01 22:51:34 -05:00
parent 2b315caf9e
commit da225224b0
4 changed files with 12 additions and 3 deletions

View File

@@ -9,7 +9,10 @@
<p>
<b><a href="/task/{{ event.tasks.id }}">
{{ event.tasks.title }}
</a></b> <br> {{ event.tasks.description }}
</a></b> <br>{% if event.tasks.description != None %}
<p>{{ event.tasks.description }}</p>
{% endif %}
</p>
{% else %}
<div><p>(no task assigned... yet)</p></div>