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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% empty %}
|
||||||
|
<p class="column"><em>{% trans "No groups found." %}</em></p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -46,8 +46,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% empty %}
|
||||||
{% if not lists or not lists.exists %}
|
|
||||||
<p class="column"><em>{% trans "No lists found." %}</em></p>
|
<p class="column"><em>{% trans "No lists found." %}</em></p>
|
||||||
{% endif %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -35,10 +35,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include 'groups/user_groups.html' with memberships=memberships %}
|
{% 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>
|
</section>
|
||||||
<div>
|
<div>
|
||||||
{% include 'snippets/pagination.html' with page=user.memberships path=path %}
|
{% include 'snippets/pagination.html' with page=user.memberships path=path %}
|
||||||
|
|
Loading…
Reference in a new issue