{% extends "cranefly/profiles/profile.html" %} {% import "_forms.html" as form_theme with context %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(_('Posts'), profile.username) }}{% endblock %} {% block tab %}

{% if items_total -%} {%- trans count=items_total, total=items_total|intcomma, username=profile.username -%} {{ username }} has one post {%- pluralize -%} {{ username }} has {{ total }} posts {%- endtrans -%} {%- else -%} {% trans username=profile.username %}{{ username }} has no posts{% endtrans %} {%- endif %}

{% if items_total %}
{% for item in items %}
{{ item.post_preparsed|markdown_short(300) }}

{% endfor %} {{ pager() }}
{% endif %} {% endblock %} {% macro pager() -%} {% if pagination['total'] > 1 %} {% endif %} {%- endmacro %} {% macro thread(item) -%} {{ item.thread.name }} {%- endmacro %} {% macro forum(forum) -%} {{ forum.name }} {%- endmacro %}