2021-07-28 16:21:42 -04:00
|
|
|
{% extends 'feed/layout.html' %}
|
2021-02-27 21:48:10 -05:00
|
|
|
{% load i18n %}
|
2021-05-11 18:14:42 -04:00
|
|
|
|
2021-01-29 13:25:31 -05:00
|
|
|
{% block panel %}
|
|
|
|
|
2021-03-22 21:42:12 -04:00
|
|
|
<h1 class="title">
|
2021-08-04 20:53:44 -04:00
|
|
|
{{ tab.name }}
|
2021-03-22 21:42:12 -04:00
|
|
|
</h1>
|
2021-01-29 13:25:31 -05:00
|
|
|
|
2021-12-29 13:50:32 -05:00
|
|
|
<div class="tabs">
|
|
|
|
<ul>
|
|
|
|
{% for stream in streams %}
|
|
|
|
<li class="{% if tab.key == stream.key %}is-active{% endif %}"{% if tab.key == stream.key %} aria-current="page"{% endif %}>
|
|
|
|
<a href="/{{ stream.key }}#feed">{{ stream.shortname }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2021-12-04 13:41:42 -05:00
|
|
|
</div>
|
2021-11-21 18:25:47 -05:00
|
|
|
|
2021-12-29 13:50:32 -05:00
|
|
|
{# feed settings #}
|
|
|
|
{% with "/"|add:tab.key|add:"#feed" as action %}
|
|
|
|
{% include 'feed/feed_filters.html' with size="small" method="post" action=action %}
|
|
|
|
{% endwith %}
|
|
|
|
|
2021-03-23 15:54:49 -04:00
|
|
|
{# announcements and system messages #}
|
|
|
|
{% if not activities.number > 1 %}
|
2021-04-07 11:31:00 -04:00
|
|
|
<a href="{{ request.path }}" class="transition-y is-hidden notification is-primary is-block" data-poll-wrapper>
|
2021-08-11 12:19:25 -04:00
|
|
|
{% blocktrans with tab_key=tab.key %}load <span data-poll="stream/{{ tab_key }}">0</span> unread status(es){% endblocktrans %}
|
2021-11-24 13:00:30 -05:00
|
|
|
{{ allowed_status_types|json_script:"unread-notifications-wrapper" }}
|
2021-03-23 15:52:38 -04:00
|
|
|
</a>
|
|
|
|
|
2021-12-21 05:43:39 -05:00
|
|
|
{% if request.user.show_goal and not goal and tab.key == 'home' %}
|
|
|
|
{% now 'Y' as year %}
|
|
|
|
<section class="block">
|
|
|
|
{% include 'feed/goal_card.html' with year=year %}
|
|
|
|
<hr>
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
2021-01-29 13:25:31 -05:00
|
|
|
|
2021-12-21 05:43:39 -05:00
|
|
|
{% if annual_summary_year and tab.key == 'home' %}
|
2022-01-01 16:09:24 -05:00
|
|
|
<section class="block is-hidden" data-hide="hide_annual_summary_{{ annual_summary_year }}">
|
2021-12-21 05:43:39 -05:00
|
|
|
{% include 'feed/summary_card.html' with year=annual_summary_year %}
|
|
|
|
<hr>
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
2021-03-23 15:54:49 -04:00
|
|
|
{% endif %}
|
|
|
|
|
2021-01-29 13:25:31 -05:00
|
|
|
{# activity feed #}
|
|
|
|
{% if not activities %}
|
2021-05-22 14:20:39 -04:00
|
|
|
<div class="block content">
|
2021-11-24 05:59:45 -05:00
|
|
|
<p>{% trans "There aren't any activities right now! Try following a user to get started" %}</p>
|
|
|
|
<p>{% if user.feed_status_types|length < 4 %}{% trans "Alternatively, you can try enabling more status types" %}{% endif %}</p>
|
2021-05-22 14:20:39 -04:00
|
|
|
|
2021-09-08 13:02:06 -04:00
|
|
|
{% if request.user.show_suggested_users and suggested_users %}
|
2021-05-22 14:20:39 -04:00
|
|
|
{# suggested users for when things are very lonely #}
|
|
|
|
{% include 'feed/suggested_users.html' with suggested_users=suggested_users %}
|
2021-08-21 13:30:44 -04:00
|
|
|
{% endif %}
|
2021-05-22 14:20:39 -04:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-01-29 13:25:31 -05:00
|
|
|
{% for activity in activities %}
|
2021-03-26 13:32:42 -04:00
|
|
|
|
2021-09-08 13:02:06 -04:00
|
|
|
{% if request.user.show_suggested_users and not activities.number > 1 and forloop.counter0 == 2 and suggested_users %}
|
2021-03-26 13:32:42 -04:00
|
|
|
{# suggested users on the first page, two statuses down #}
|
2021-05-22 14:20:39 -04:00
|
|
|
{% include 'feed/suggested_users.html' with suggested_users=suggested_users %}
|
2021-03-26 13:32:42 -04:00
|
|
|
{% endif %}
|
2021-01-29 13:25:31 -05:00
|
|
|
<div class="block">
|
2021-03-22 11:50:41 -04:00
|
|
|
{% include 'snippets/status/status.html' with status=activity %}
|
2021-01-29 13:25:31 -05:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% endblock %}
|