{% macro chain(nodes, acct) %}{% endmacro %}
{% if e.status %}{{ e.status }}{% endif %} {% if e.urgency %}urgency {{ e.urgency }}{% endif %} {% if e.sig_status %}signature {{ e.sig_status }}{% endif %} {{ e.id[-6:]|lower }}

{{ e.title }}

{% if e.body %}{% if e.body|length > 700 or e.body.count("\n") >= 12 %}
{{ e.body|markdown }}
{% else %}
{{ e.body|markdown }}
{% endif %}{% endif %} {% if e.links %}{% endif %} {% if e.refs %}{% endif %}
source: {{ e.source.id }}{% if e.tags %}, tags:{% endif %}{% for t in e.tags %}{{ t }}{% endfor %}
{% if nav_state == "account" and e.status == "open" %}
{% endif %} {% set steps = history.get(e.id) if history is defined else none %} {% set can_retract = nav_state == "account" and e.status not in ("retracted", "superseded") %} {% if steps or can_retract %}
History{% if steps %} ({{ steps|length }}){% endif %}

Created by {{ e.source.id }}, {{ e.visible_at|ago }}

{% if steps %}{{ chain(steps, nav_state == "account") }}{% endif %} {% if can_retract %}
{% endif %}
{% endif %} {% if e.payload %}
payload
{{ e.payload|payload_text }}
{% endif %}