2018-04-27 00:49:43 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load humanize %}
|
|
|
|
|
|
|
|
{% block title %}
|
2018-08-23 17:19:32 +02:00
|
|
|
Brutaldon ({{ own_acct.username }}) - thread
|
2018-04-27 00:49:43 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% comment %}
|
|
|
|
mastodon.status_context(<numerical id>)
|
2018-08-23 17:19:32 +02:00
|
|
|
# Returns the following dictionary:
|
|
|
|
{
|
|
|
|
'ancestors': # A list of toot dicts
|
|
|
|
'descendants': # A list of toot dicts
|
|
|
|
}
|
|
|
|
{% endcomment %}
|
2018-04-27 00:49:43 +02:00
|
|
|
|
2018-08-23 17:19:32 +02:00
|
|
|
{% block content %}
|
|
|
|
<h1 id="title" class="title">
|
|
|
|
Thread
|
|
|
|
</h1>
|
2018-04-27 00:49:43 +02:00
|
|
|
{% for ancestor in context.ancestors %}
|
2018-08-23 17:19:32 +02:00
|
|
|
{% include "main/toot_partial.html" with toot=ancestor %}
|
|
|
|
<hr class="is-hidden">
|
2018-04-27 00:49:43 +02:00
|
|
|
{% endfor %}
|
2018-08-23 17:19:32 +02:00
|
|
|
{% include "main/toot_partial.html" with toot=toot active=True %}
|
2018-04-27 01:46:05 +02:00
|
|
|
<hr class="is-hidden">
|
2018-04-27 00:49:43 +02:00
|
|
|
{% for descendant in context.descendants %}
|
2018-08-23 17:19:32 +02:00
|
|
|
{% include "main/toot_partial.html" with toot=descendant %}
|
|
|
|
<hr class="is-hidden">
|
2018-04-27 00:49:43 +02:00
|
|
|
{% endfor %}
|
|
|
|
|
2018-09-06 18:07:31 +02:00
|
|
|
{% if not preferences.theme.is_brutalist %}
|
|
|
|
<script type="application/javascript">
|
|
|
|
Intercooler.ready(expandCWButtonPrepare);
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
2018-08-23 17:19:32 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block page_scripts_inline %}
|
|
|
|
<script type="application/javascript">
|
2018-09-06 18:07:31 +02:00
|
|
|
document.addEventListener('DOMContentLoaded', expandCWButtonPrepare);
|
2018-08-23 17:19:32 +02:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|