mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2025-01-08 21:31:08 +01:00
2e7fc810ac
It works the same as the Mastodon web UI for now - active toot is highlighted, ancestors displayed in order above, descendants in order below. I hope to add actual full threading one day.
35 lines
838 B
HTML
35 lines
838 B
HTML
{% extends "base.html" %}
|
|
{% load humanize %}
|
|
|
|
{% block title %}
|
|
Brutaldon - 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 class="title">Thread</h1>
|
|
{% for ancestor in context.ancestors %}
|
|
<div class="box">
|
|
{% include "main/toot_partial.html" with toot=ancestor %}
|
|
</div>
|
|
{% endfor %}
|
|
<div class="box active_context">
|
|
{% include "main/toot_partial.html" with toot=toot %}
|
|
</div>
|
|
{% for descendant in context.descendants %}
|
|
<div class="box">
|
|
{% include "main/toot_partial.html" with toot=descendant %}
|
|
</div>
|
|
{% endfor %}
|
|
|
|
|
|
{% endblock %}
|