{% extends 'feed/feed_layout.html' %} {% load i18n %} {% load bookwyrm_tags %} {% load humanize %} {% block panel %}

{% if tab == 'home' %} {% trans "Home Timeline" %} {% elif tab == 'local' %} {% trans "Local Timeline" %} {% else %} {% trans "Federated Timeline" %} {% endif %}

{# announcements and system messages #} {% if not activities.number > 1 %} {% if request.user.show_goal and not goal and tab == 'home' %} {% now 'Y' as year %}
{% include 'snippets/goal_card.html' with year=year %}
{% endif %} {% endif %} {# activity feed #} {% if not activities %}

{% trans "There aren't any activities right now! Try following a user to get started" %}

{% endif %} {% for activity in activities %} {% if not activities.number > 1 and forloop.counter0 == 2 and suggested_users %} {# suggested users on the first page, two statuses down #}

{% trans "Who to follow" %}

{% for user in suggested_users %}
{% include 'snippets/avatar.html' with user=user large=True %} {{ user.display_name|truncatechars:10 }} @{{ user|username|truncatechars:8 }} {% include 'snippets/follow_button.html' with user=user minimal=True %} {% if user.mutuals %}

{% blocktrans with mutuals=user.mutuals|intcomma count counter=user.mutuals %}{{ mutuals }} follower you follow{% plural %}{{ mutuals }} followers you follow{% endblocktrans %}

{% elif user.shared_books %}

{% blocktrans with shared_books=user.shared_books|intcomma count counter=user.shared_books %}{{ shared_books }} book on your shelves{% plural %}{{ shared_books }} books on your shelves{% endblocktrans %}

{% endif %}
{% endfor %}
View directory
{% endif %}
{% include 'snippets/status/status.html' with status=activity %}
{% endfor %} {% endblock %}