brutaldon-interfaccia-web-m.../brutaldon/templates/main/thread.html

43 lines
988 B
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 op in toots %}
{% if op == IN %}
<ul>
{% elif op == OUT %}
</ul>
{% else %}
<li>
{% if op.toot == toot %}
{% include "main/toot_partial.html" with toot=op.toot active=True %}
{% else %}
{% include "main/toot_partial.html" with toot=op.toot %}
{% endif %}
</li>
{% endif %}
{% endfor %}
{% if not preferences.no_javascript %}
<script type="application/javascript">
Intercooler.ready(expandCWButtonPrepare);
</script>
{% endif %}
{% endblock %}