forked from mirrors/bookwyrm
56 lines
1.7 KiB
HTML
56 lines
1.7 KiB
HTML
{% extends 'feed/feed_layout.html' %}
|
|
{% load i18n %}
|
|
{% load bookwyrm_tags %}
|
|
{% block panel %}
|
|
|
|
<h1 class="title">
|
|
{% if tab == 'home' %}
|
|
{% trans "Home Timeline" %}
|
|
{% elif tab == 'local' %}
|
|
{% trans "Local Timeline" %}
|
|
{% else %}
|
|
{% trans "Federated Timeline" %}
|
|
{% endif %}
|
|
</h1>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li class="{% if tab == 'home' %}is-active{% endif %}"{% if tab == 'home' %} aria-current="page"{% endif %}>
|
|
<a href="/#feed">{% trans "Home" %}</a>
|
|
</li>
|
|
<li class="{% if tab == 'local' %}is-active{% endif %}"{% if tab == 'local' %} aria-current="page"{% endif %}>
|
|
<a href="/local#feed">{% trans "Local" %}</a>
|
|
</li>
|
|
<li class="{% if tab == 'federated' %}is-active{% endif %}"{% if tab == 'federated' %} aria-current="page"{% endif %}>
|
|
<a href="/federated#feed">{% trans "Federated" %}</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
{# announcements and system messages #}
|
|
{% if not activities.number > 1 %}
|
|
<a href="{{ request.path }}" class="transition-y hidden notification is-primary is-block" data-poll-wrapper>
|
|
{% blocktrans %}load <span data-poll="stream/{{ tab }}">0</span> unread status(es){% endblocktrans %}
|
|
</a>
|
|
|
|
{% if request.user.show_goal and not goal and tab == 'home' %}
|
|
{% now 'Y' as year %}
|
|
<section class="block">
|
|
{% include 'snippets/goal_card.html' with year=year %}
|
|
<hr>
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{# activity feed #}
|
|
{% 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 %}
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|