bookwyrm/bookwyrm/templates/feed/layout.html

51 lines
1.7 KiB
HTML
Raw Normal View History

2020-01-25 23:25:19 +00:00
{% extends 'layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
{% load utilities %}
2020-02-21 23:39:25 +00:00
{% block title %}{% trans "Updates" %}{% endblock %}
{% block content %}
{% if user.moved_to %}
<div class="container my-6">
<div class="notification is-info has-text-centered">
<p>
{% trans "You have have moved to" %}
<a href="{{user.moved_to}}">{% id_to_username user.moved_to %}</a>
</p>
<p> {% trans "You can undo this move to restore full functionality, but some followers may have already unfollowed this account." %}</p>
<form name="remove-alias" action="{% url 'prefs-unmove' %}" method="post">
{% csrf_token %}
<input type="hidden" name="remote_id" id="remote_id" value="{{user.moved_to}}">
<button type="submit" class="button is-small">{% trans "Undo move" %}</button>
</form>
</div>
</div>
{% else %}
2020-09-30 00:43:30 +00:00
<div class="columns">
2021-01-29 18:25:31 +00:00
{% if user.is_authenticated %}
2020-09-30 22:00:46 +00:00
<div class="column is-one-third">
2022-01-05 21:12:49 +00:00
{% include "feed/suggested_books.html" %}
{% if goal %}
<section class="block">
<div class="block">
2021-02-28 02:48:10 +00:00
<h3 class="title is-4">{% blocktrans with yar=goal.year %}{{ year }} Reading Goal{% endblocktrans %}</h3>
2021-01-16 19:34:19 +00:00
{% include 'snippets/goal_progress.html' with goal=goal %}
</div>
</section>
{% endif %}
2020-09-29 17:21:10 +00:00
</div>
2021-01-29 18:25:31 +00:00
{% endif %}
2020-01-25 23:25:19 +00:00
2020-09-30 00:51:57 +00:00
<div class="column is-two-thirds" id="feed">
2021-01-29 18:25:31 +00:00
{% block panel %}{% endblock %}
2021-01-29 18:25:31 +00:00
{% if activities %}
{% include 'snippets/pagination.html' with page=activities path=path anchor="#feed" mode="chronological" %}
{% endif %}
2020-09-30 00:43:30 +00:00
</div>
2020-09-29 17:21:10 +00:00
</div>
{% endif %}
2020-01-25 23:25:19 +00:00
{% endblock %}
2021-01-29 18:25:31 +00:00