{% endif %} {% if not tag and pinned|length != 0 %}
{{ icon "pin" }}
{{ text "communities:label.pinned" }}
{% for post in pinned %}
{% if post[2].read_access == "Everybody" %}
{% if post[0].context.repost and post[0].context.repost.reposting %}
{{ components::repost(repost=post[3], post=post[0], owner=post[1], secondary=true, community=post[2], show_community=true, can_manage_post=is_self) }}
{% else %}
{{ components::post(post=post[0], owner=post[1], question=post[4], secondary=true, community=post[2], can_manage_post=is_self) }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if not tag %} {{ icon "clock" }}
{{ text "auth:label.recent_posts" }}
{% else %} {{ icon "tag" }}
{{ text "auth:label.recent_with_tag" }}: {{ tag }}
{% endif %}
{% for post in posts %}
{% if post[2].read_access == "Everybody" %}
{% if post[0].context.repost and post[0].context.repost.reposting %}
{{ components::repost(repost=post[3], post=post[0], owner=post[1], secondary=true, community=post[2], show_community=true, can_manage_post=is_self) }}
{% else %}
{{ components::post(post=post[0], owner=post[1], question=post[4], secondary=true, community=post[2], can_manage_post=is_self) }}
{% endif %}
{% endif %}
{% endfor %}
{{ components::pagination(page=page, items=posts|length, key="%tag=", value=tag) }}