moviewyrm/bookwyrm/templates/feed/status.html

48 lines
1.2 KiB
HTML
Raw Normal View History

{% extends 'feed/layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-10-03 02:22:21 +00:00
{% load bookwyrm_tags %}
{% block opengraph_images %}
{% firstof status.book status.mention_books.first as book %}
{% if book %}
{% include 'snippets/opengraph_images.html' with image=preview %}
{% else %}
{% include 'snippets/opengraph_images.html' %}
{% endif %}
{% endblock %}
2021-01-29 18:25:31 +00:00
{% block panel %}
<header class="block">
<a href="/#feed" class="button" data-back>
2021-03-07 12:18:10 +00:00
<span class="icon icon-arrow-left" aria-hidden="true"></span>
2021-02-28 02:48:10 +00:00
<span>{% trans "Back" %}</span>
2021-01-29 18:25:31 +00:00
</a>
</header>
<div class="thread-parent is-relative block">
<div class="thread">
2021-10-03 01:24:54 +00:00
{% for parent in ancestors %}
2021-10-03 02:22:21 +00:00
{% if parent.id %}
2021-10-03 01:24:54 +00:00
<div class="block">
2021-10-03 02:22:21 +00:00
{% include 'snippets/status/status.html' with status=parent|load_subclass %}
2021-10-03 01:24:54 +00:00
</div>
{% endif %}
{% endfor %}
2021-10-03 02:22:21 +00:00
<div class="is-main block" id="anchor-{{ status.id }}">
{% include 'snippets/status/status.html' with status=status main=True %}
</div>
{% for child in children %}
<div class="block">
{% include 'snippets/status/status.html' with status=child %}
</div>
{% endfor %}
</div>
</div>
2021-01-29 18:25:31 +00:00
{% endblock %}