mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 19:11:09 +00:00
Uses {% empty %} instead of if statements
This commit is contained in:
parent
e8949bbffd
commit
185486c6fc
3 changed files with 4 additions and 7 deletions
|
@ -31,5 +31,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% empty %}
|
||||
<p class="column"><em>{% trans "No groups found." %}</em></p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -46,8 +46,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% if not lists or not lists.exists %}
|
||||
{% empty %}
|
||||
<p class="column"><em>{% trans "No lists found." %}</em></p>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -35,10 +35,6 @@
|
|||
</div>
|
||||
|
||||
{% include 'groups/user_groups.html' with memberships=memberships %}
|
||||
|
||||
{% if not memberships or not memberships.exists %}
|
||||
<p><em>{% trans "No groups found." %}</em></p>
|
||||
{% endif %}
|
||||
</section>
|
||||
<div>
|
||||
{% include 'snippets/pagination.html' with page=user.memberships path=path %}
|
||||
|
|
Loading…
Reference in a new issue