aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/templates/thread.html
blob: c0a868406f2d828ac816920c686a0c05c5647131 (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().post) %}
  <center><i>---</i></center>
{% endif %}

{% call macro::feed_item(post.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.post) %}
  {% endfor %}
{% endif %}

{% endblock %}