2025-06-01 12:25:33 -04:00
|
|
|
(text "{% extends \"profile/base.html\" %} {% block content %} {% if profile.settings.enable_questions and (user or profile.settings.allow_anonymous_questions) %}")
|
|
|
|
(div
|
|
|
|
("style" "display: contents")
|
|
|
|
(text "{{ components::create_question_form(receiver=profile.id, header=profile.settings.motivational_header) }}"))
|
|
|
|
|
|
|
|
(text "{%- endif %} {% if not tag and pinned|length != 0 -%}")
|
|
|
|
(div
|
|
|
|
("class" "card-nest")
|
|
|
|
(div
|
|
|
|
("class" "card small flex gap-2 items-center")
|
|
|
|
(text "{{ icon \"pin\" }}")
|
|
|
|
(span
|
|
|
|
(text "{{ text \"communities:label.pinned\" }}")))
|
|
|
|
(div
|
|
|
|
("class" "card flex flex-col gap-4")
|
2025-06-04 17:21:46 -04:00
|
|
|
(text "{% 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, poll=post[5]) }} {%- endif %} {%- endif %} {% endfor %}")))
|
2025-06-01 12:25:33 -04:00
|
|
|
|
|
|
|
(text "{%- endif %} {{ macros::profile_nav(selected=\"posts\") }}")
|
|
|
|
(div
|
|
|
|
("class" "card-nest")
|
|
|
|
(div
|
|
|
|
("class" "card small flex gap-2 justify-between items-center")
|
|
|
|
(div
|
|
|
|
("class" "flex gap-2 items-center")
|
|
|
|
(text "{% if not tag -%} {{ icon \"clock\" }}")
|
|
|
|
(span
|
|
|
|
(text "{{ text \"auth:label.recent_posts\" }}"))
|
|
|
|
(text "{% else %} {{ icon \"tag\" }}")
|
|
|
|
(span
|
2025-06-17 14:28:18 -04:00
|
|
|
(text "{{ text \"auth:label.recent_with_tag\" }}: ")
|
2025-06-01 12:25:33 -04:00
|
|
|
(b
|
|
|
|
(text "{{ tag }}")))
|
|
|
|
(text "{%- endif %}"))
|
|
|
|
(text "{% if user -%}")
|
|
|
|
(a
|
|
|
|
("href" "/search?profile={{ profile.id }}")
|
2025-06-12 13:53:23 -04:00
|
|
|
("class" "button lowered small")
|
2025-06-01 12:25:33 -04:00
|
|
|
(text "{{ icon \"search\" }}")
|
|
|
|
(span
|
|
|
|
(text "{{ text \"general:link.search\" }}")))
|
|
|
|
(text "{%- endif %}"))
|
|
|
|
(div
|
2025-06-17 14:28:18 -04:00
|
|
|
("class" "card w-full flex flex-col gap-2")
|
|
|
|
("ui_ident" "io_data_load")
|
|
|
|
(div ("ui_ident" "io_data_marker"))))
|
|
|
|
|
|
|
|
(script
|
|
|
|
(text "setTimeout(() => {
|
|
|
|
trigger(\"ui::io_data_load\", [\"/_swiss_army_timeline?user_id={{ profile.id }}&tag={{ tag }}&page=\", Number.parseInt(\"{{ page }}\") - 1]);
|
|
|
|
});"))
|
2025-06-01 12:25:33 -04:00
|
|
|
|
|
|
|
(text "{% endblock %}")
|