Merge branch 'main' into redis-activity-stream

This commit is contained in:
Mouse Reeve 2021-03-23 12:53:12 -07:00
commit 2acf1355e9
2 changed files with 7 additions and 2 deletions

View file

@ -296,3 +296,7 @@
</div>
{% endblock %}
{% block scripts %}
<script src="/static/js/tabs.js"></script>
{% endblock %}

View file

@ -31,7 +31,7 @@
</a>
{# 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 %}
@ -43,9 +43,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 %}