mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 09:31:08 +00:00
Removes "all books" link from profile when there are none
This commit is contained in:
parent
185486c6fc
commit
63b60ad62c
1 changed files with 9 additions and 3 deletions
|
@ -51,9 +51,15 @@
|
|||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% empty %}
|
||||
<p class="column">
|
||||
<em>No books found.</em>
|
||||
</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if shelves.exists %}
|
||||
<small><a href="{% url 'user-shelves' user|username %}">{% trans "View all books" %}</a></small>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
@ -119,16 +125,16 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% for activity in activities %}
|
||||
<div class="block" id="feed_{{ activity.id }}">
|
||||
{% include 'snippets/status/status.html' with status=activity %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% if not activities %}
|
||||
{% empty %}
|
||||
<div class="block">
|
||||
<p><em>{% trans "No activities yet!" %}</em></p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% include 'snippets/pagination.html' with page=activities path=user.local_path anchor="#feed" mode="chronological" %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue