{% extends "base.html" %} {% import "macro.html" as macro %} {% block main %} {% if post.parent.is_some() %} {% let parent = post.parent.as_ref().unwrap() %} {% if parent.post.is_some() %} {% call macro::feed_item(parent.post.as_ref().unwrap()) %} {% else %}

Post not found! {% endif %}

---
{% endif %} {% if post.post.is_some() %} {% call macro::feed_item(post.post.as_ref().unwrap()) %} {% else %}

Post not found! {% endif %} {% if post.replies.is_some() && post.replies.as_ref().unwrap().len() > 0 %}

--- replies ---
{% for item in post.replies.as_ref().unwrap() %} {% if item.post.is_some() %} {% call macro::feed_item(item.post.as_ref().unwrap()) %} {% else %}

Post not found! {% endif %} {% endfor %} {% endif %} {% endblock %}