{% extends "base.html" %} {% block title %}{{ thread.subject }} - git-ew{% endblock %} {% macro render_message(item) %}
{{ item.message.from_name }} <{{ item.message.from_email }}>
{{ item.message.message_id }} {{ item.message.date.strftime('%Y-%m-%d %H:%M') }}
{# TODO: Option to render Markdown (`|safe`) #}
{{ item.body }}
{% if item.quoted_body %}
Show quoted text
{{ item.quoted_body }}
{% endif %}
{% if item.message.is_patch and item.message.patch_content %}
View Patch
{{ item.message.patch_content }}
{% endif %}
{% if item.children %}
{% for child in item.children %} {{ render_message(child) }} {% endfor %}
{% endif %}
{% endmacro %} {% block content %}

{{ thread.subject }}

{% if thread.is_patch %} Patch {% endif %} Created {{ thread.created_at.strftime('%Y-%m-%d %H:%M') }}
{% for item in messages %} {{ render_message(item) }} {% endfor %}
{% endblock %} {% block scripts %} {% endblock %}