{% import 'jinja_master/lib.html' as lib with context %}

{% set size = value.parent and 32 or 48 %} {{lib.gravatar(value.author(), size=size)}}
{{value.author().display_name}}
{{h.ago(value.timestamp)}}

{% if show_subject %} {{value.subject or '(no subject)'}}
{% endif %} {{g.markdown.convert(value.text)|safe}}
{% if h.has_artifact_access('post', value.thread)() %} {% endif %} {% if h.has_artifact_access('moderate', value)() %} {% endif %} {% if value.attachments %}
Attachments
{% for att in value.attachments %}
{% if att.is_image() %}
{{att.metadata.filename}} {% else %} {{att.metadata.filename}} {% endif %} {% if c.user._id and value.author_id==c.user._id %}
{% endif %}
{% endfor %}
{% endif %}
Reply
Link
Edit
{% if h.has_artifact_access('moderate', value)() %} {{widgets.moderate_post.display(value=value, action=value.url()+'moderate')}} {% endif %} {% if h.has_artifact_access('post', value.thread)() %} Attach {% endif %}
{% if h.has_artifact_access('moderate', value.thread)() and 'promote_to_thread' in widgets and not supress_promote %} {% endif %}