{{ icon "search" }} {% if not profile -%}
{{ text "general:link.search" }}
{% else %}
{{ components::full_username(user=profile) }}
{%- endif %}
{% if not profile and not user.permissions|has_supporter -%} {{
components::supporter_ad(body="Become a supporter for full-site
search!") }} {% else %}
{%- endif %}
{% for post in list %}
{% 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) }}
{% else %}
{{ components::post(post=post[0], owner=post[1], question=post[4], secondary=true, community=post[2]) }}
{%- endif %}
{%- endif %}
{% endfor %}
{% if profile -%}
{{ components::pagination(page=page, items=list|length, key="&profile=" ~ profile.id, value="&query=" ~ query) }}
{% else %}
{{ components::pagination(page=page, items=list|length, key="&query=" ~ query) }}
{%- endif %}