aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/templates/thread.html
blob: 608c9717d631bca66bfa25a0433c805713ec45e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% extends "base.html" %}
{% import "macro.html" as macro %}

{% block main %}

{% if post.parent.is_some() %}
  {% call macro::feed_item(post.parent.as_ref().unwrap()) %}
  <center><i>---</i></center>
{% endif %}

{% call macro::feed_item(post) %}

{% if post.replies.is_some() && post.replies.as_ref().unwrap().len() > 0 %}
  <center><i>--- replies ---</i></center>
  {% for item in post.replies.as_ref().unwrap() %}
    {% call macro::feed_item(item) %}
  {% endfor %}
{% endif %}

{% endblock %}