{% extends "base.html" %} {% import "utils.html" as utils %} {% block title %}{{ post.title }} - r/{{ post.community }}{% endblock %} {% block search %} {% call utils::search(["/r/", post.community.as_str()].concat(), "") %} {% endblock %} {% block root %}/r/{{ post.community }}{% endblock %}{% block location %}r/{{ post.community }}{% endblock %} {% block head %} {% call super() %} {% endblock %} {% macro comment(item) -%}
r/{{ post.community }} • u/{{ post.author.name }} {% if post.author.flair.flair_parts.len() > 0 %} {% call utils::render_flair(post.author.flair.flair_parts) %} {% endif %} • {{ post.rel_time }}
{{ post.title }} {% if post.flair.flair_parts.len() > 0 %} {% call utils::render_flair(post.flair.flair_parts) %} {% endif %} {% if post.flags.nsfw %} NSFW{% endif %}
{% if post.post_type == "image" %} {% else if post.post_type == "video" || post.post_type == "gif" %} {% else if post.post_type == "link" %} {{ post.media }} {% endif %}{% for reply1 in c.replies %}{% call comment(reply1) %}{% call close() %}{% for reply2 in reply1.replies %}{% call comment(reply2) %}{% call close() %} {% endfor %}{% for reply3 in reply2.replies %}{% call comment(reply3) %} {% if reply3.replies.len() > 0 %} → More replies {% endif %} {% call close() %} {% endfor %}{% call close() %} {% endfor %}
{{ item.score }}
u/{{ item.author.name }} {% if item.author.flair.flair_parts.len() > 0 %} {% call utils::render_flair(item.author.flair.flair_parts) %} {% endif %} {{ item.rel_time }}