{% macro render_post_list(posts) %} {%- endfor %}
{{ _("Title") }} {{ _("Author") }} {{ _("Categories") }} {{ _("Comments") }} {{ _("Date") }} {%- for post in posts %}
{{ post.title|e }} {{ post.author.display_name|e }} {% for category in post.categories %}{{ category.name|e }} {%- if not loop.last %}, {% endif %} {%- else %}{{ _("no categories") }}{% endfor %} {{ post.comments|count }} {{ post.pub_date|datetimeformat('short') if post.pub_date }} {%- else %}
{{ _("No pages.") }}
{% endmacro %} {% macro render_drafts_box(drafts, hide_if_empty=true) %} {% if drafts or not hide_if_empty %}
{% trans count=drafts|length %}Your draft:{% pluralize %}Your drafts:{% endtrans %} {%- for draft in drafts %} {{ draft.title|e }} {%- if not loop.last %},{% endif %} {%- endfor %}
{% endif %} {% endmacro %}