mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2024-12-26 15:22:28 +01:00
44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load humanize %}
|
|
|
|
{% block title %}
|
|
Brutaldon ({{ own_acct.username }}) - thread
|
|
{% endblock %}
|
|
|
|
{% comment %}
|
|
mastodon.status_context(<numerical id>)
|
|
# Returns the following dictionary:
|
|
{
|
|
'ancestors': # A list of toot dicts
|
|
'descendants': # A list of toot dicts
|
|
}
|
|
{% endcomment %}
|
|
|
|
{% block content %}
|
|
<h1 id="title" class="title">
|
|
Thread
|
|
</h1>
|
|
{% for ancestor in context.ancestors %}
|
|
{% include "main/toot_partial.html" with toot=ancestor %}
|
|
<hr class="is-hidden">
|
|
{% endfor %}
|
|
{% include "main/toot_partial.html" with toot=toot active=True %}
|
|
<hr class="is-hidden">
|
|
{% for descendant in context.descendants %}
|
|
{% include "main/toot_partial.html" with toot=descendant %}
|
|
<hr class="is-hidden">
|
|
{% endfor %}
|
|
|
|
{% if not preferences.theme.is_brutalist %}
|
|
<script type="application/javascript">
|
|
Intercooler.ready(expandCWButtonPrepare);
|
|
</script>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block page_scripts_inline %}
|
|
<script type="application/javascript">
|
|
document.addEventListener('DOMContentLoaded', expandCWButtonPrepare);
|
|
</script>
|
|
{% endblock %}
|