Skip to content

Commit

Permalink
Removes "all books" link from profile when there are none
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse-reeve committed Aug 7, 2023
1 parent 185486c commit 63b60ad
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bookwyrm/templates/user/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ <h3>
{% 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 %}

Expand Down Expand Up @@ -119,16 +125,16 @@ <h2 class="title column">{% trans "User Activity" %}</h2>
</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>
Expand Down

0 comments on commit 63b60ad

Please sign in to comment.