add for else test

This commit is contained in:
davidodenwald 2022-12-11 20:02:23 +01:00
parent 3490efe0c4
commit 1f13cc1500
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,7 @@
<ul>
{% for user in users %}
<li>{{ user.username|e }}</li>
{% else %}
<li><em>no users found</em></li>
{% endfor %}
</ul>

View file

@ -0,0 +1,7 @@
<ul>
{% for user in users %}
<li>{{ user.username|e }}</li>
{%else %}
<li><em>no users found</em></li>
{% endfor %}
</ul>