moviewyrm/bookwyrm/templates/feed/feed.html

41 lines
1.3 KiB
HTML
Raw Normal View History

2021-01-29 18:25:31 +00:00
{% extends 'feed/feed_layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-01-29 18:25:31 +00:00
{% load bookwyrm_tags %}
{% block panel %}
2021-03-02 17:59:15 +00:00
<h1 class="title">{% blocktrans %}{{ tab_title }} Timeline{% endblocktrans %}</h1>
2021-01-29 18:25:31 +00:00
<div class="tabs">
<ul>
2021-03-07 12:55:50 +00:00
<li class="{% if tab == 'home' %}is-active{% endif %}"{% if tab == 'home' %} aria-current="page"{% endif %}>
2021-02-28 02:48:10 +00:00
<a href="/#feed">{% trans "Home" %}</a>
2021-01-29 18:25:31 +00:00
</li>
2021-03-07 12:55:50 +00:00
<li class="{% if tab == 'local' %}is-active{% endif %}"{% if tab == 'local' %} aria-current="page"{% endif %}>
2021-02-28 02:48:10 +00:00
<a href="/local#feed">{% trans "Local" %}</a>
2021-01-29 18:25:31 +00:00
</li>
2021-03-07 12:55:50 +00:00
<li class="{% if tab == 'federated' %}is-active{% endif %}"{% if tab == 'federated' %} aria-current="page"{% endif %}>
2021-02-28 02:48:10 +00:00
<a href="/federated#feed">{% trans "Federated" %}</a>
2021-01-29 18:25:31 +00:00
</li>
</ul>
</div>
{# announcements and system messages #}
{% if request.user.show_goal and not goal and tab == 'home' %}
2021-01-29 18:25:31 +00:00
{% now 'Y' as year %}
2021-03-18 16:08:19 +00:00
<section class="block">
2021-01-29 18:25:31 +00:00
{% include 'snippets/goal_card.html' with year=year %}
<hr>
</section>
{% endif %}
{# activity feed #}
{% if not activities %}
2021-02-28 02:48:10 +00:00
<p>{% trans "There aren't any activities right now! Try following a user to get started" %}</p>
2021-01-29 18:25:31 +00:00
{% endif %}
{% for activity in activities %}
<div class="block">
2021-02-23 21:34:16 +00:00
{% include 'snippets/status/status.html' with status=activity %}
2021-01-29 18:25:31 +00:00
</div>
{% endfor %}
{% endblock %}