{% extends "profile/base.html" %} {% block content %} {% if profile.settings.enable_questions and user %}
{{ components::create_question_form(receiver=profile.id) }}
{% endif %} {% if pinned|length != 0 %}
{{ icon "pin" }} {{ text "communities:label.pinned" }}
{% for post in pinned %} {% 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 %} {% endfor %}
{% endif %}
{{ icon "clock" }} {{ text "auth:label.recent_posts" }}
{% for post in posts %} {% 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 %} {% endfor %} {{ components::pagination(page=page, items=posts|length) }}
{% endblock %}