{% import "macros.html" as macros %} {% import "components.html" as components %} {% extends "communities/base.html" %} {% block content %}
{% if user and can_post %}
{{ text "communities:label.create_post" }}
{% endif %} {% if pinned|length != 0 %}
{{ icon "pin" }} {{ text "communities:label.pinned" }}
{% for post in pinned %} {{ components::post(post=post[0], owner=post[1], secondary=true, show_community=false, can_manage_post=can_manage_posts) }} {% endfor %}
{% endif %}
{{ icon "newspaper" }} {{ text "communities:label.posts" }}
{% for post in feed %} {{ components::post(post=post[0], owner=post[1], secondary=true, show_community=false, can_manage_post=can_manage_posts) }} {% endfor %} {{ components::pagination(page=page, items=feed|length) }}
{% endblock %}