Merge pull request #781 from mouse-reeve/reading-goal-card-display

Only show reading goal insert on first page of feed
This commit is contained in:
Mouse Reeve 2021-03-22 12:38:01 -07:00 committed by GitHub
commit e63f647e27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@
</div>
{# announcements and system messages #}
{% if request.user.show_goal and not goal and tab == 'home' %}
{% if request.user.show_goal and not goal and tab == 'home' and not activities.number > 1 %}
{% now 'Y' as year %}
<section class="block">
{% include 'snippets/goal_card.html' with year=year %}
@ -31,9 +31,10 @@
{% if not activities %}
<p>{% trans "There aren't any activities right now! Try following a user to get started" %}</p>
{% endif %}
{% for activity in activities %}
<div class="block">
{% include 'snippets/status/status.html' with status=activity %}
{% include 'snippets/status/status.html' with status=activity %}
</div>
{% endfor %}