By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 post.html

View raw Download
text/html • 1.37 kiB
HTML document, ASCII text
        
            
1
<dl>
2
<dt>
3
<article class="card">
4
<section class="card-main">
5
{% if post.parent and not level %}
6
<a href="{{ parent.parent.number }}">
7
<x-hbox class="box-center">
8
<iconify-icon icon="mdi:arrow-left"></iconify-icon>
9
{{ post.parent.subject }}
10
</x-hbox>
11
</a>
12
{% endif %}
13
{% if level %}
14
<h2><a href="{{ post.number }}">{{ post.subject }}</a></h2>
15
{% else %}
16
<h2>{{ post.subject }}</h2>
17
{% endif %}
18
<p><a href="/{{ post.owner.username }}">{{ post.owner.username }}</a> &bull; {{ post.date | strftime("%A, %e %B %Y, %H:%M:%S") }}</p>
19
<p>
20
{{ post.message }}
21
</p>
22
</section>
23
</article>
24
</dt>
25
{% set level = level + 1 %}
26
{% if level <= maxPostNesting %}
27
{% if post.children %}
28
{% for post in Post.query.filter_by(repo=repoData, parent=parent) %}
29
<dd>{% include "post.html" %}</dd>
30
{% endfor %}
31
{% endif %}
32
{% elif post.children %}
33
<dd>
34
<a href="{{ post.number }}">Comments hidden; click to go deeper.</a>
35
</dd>
36
{% endif %}
37
</dl>