{% import 'allura:templates/jinja_master/lib.html' as lib with context %} {% if page == 0 %} {% set params = None %} {% else %} {% set params = dict(page=page, limit=limit) %} {% endif %} {% set shortlink_url = tg.url( request.scheme + '://' + request.host + url.current(), params) + '#' + value.slug %}

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

{% if (value.status == 'pending') and not h.has_access(value, 'moderate')() %} Post awaiting moderation. {% else %} {% if show_subject %} {{value.subject or '(no subject)'}}
{% endif %} {{g.markdown.convert(value.text)|safe}}  {{lib.related_artifacts(value)}} {% if value.edit_count %}
Last edit: {{value.last_edit_by().display_name}} {{h.ago(value.last_edit_date)}} {% endif %} {% endif %}
{% if h.has_access(value, 'moderate')() %} {% endif %} {% if h.has_access(value, 'moderate')() %} {% endif %} {% if value.attachments %}
Attachments
{% for att in value.attachments %}
{% if att.is_image() %} Thumbnail
{{att.filename}} {% if c.user._id and value.author_id==c.user._id %}
{% endif %} {% else %} {{att.filename}} {% if c.user._id and value.author_id==c.user._id %} {% endif %} {% endif %}
{% endfor %}
{% endif %}
{% if h.has_access(value.thread, 'post')() %} {% endif %}
{% if h.has_access(value.thread, 'moderate')() %} {{widgets.moderate_post.display(value=value, action=value.url()+'moderate', status = value.status)}} {%endif%} {% if h.has_access(value.thread, 'post')() %} Attach {% endif %}
{% if h.has_access(value.thread, 'moderate')() and 'promote_to_thread' in widgets and not supress_promote %} {% endif %}
{% block extra_css %} {% endblock %}