2025-06-01 12:25:33 -04:00
|
|
|
(text "{% extends \"root.html\" %} {% block head %}")
|
|
|
|
(title
|
|
|
|
(text "Latest posts - {{ config.name }}"))
|
|
|
|
|
|
|
|
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
|
|
|
|
(main
|
|
|
|
("class" "flex flex-col gap-2")
|
2025-06-12 13:53:23 -04:00
|
|
|
(text "{{ macros::timelines_nav(selected=\"all\", posts=\"/all\", questions=\"/all/questions\") }} {% if not user -%}")
|
2025-06-01 12:25:33 -04:00
|
|
|
(div
|
|
|
|
("class" "card-nest")
|
|
|
|
(div
|
|
|
|
("class" "card small flex items-center gap-2")
|
|
|
|
(text "{{ icon \"heart\" }}")
|
|
|
|
(b
|
|
|
|
(text "{{ text \"general:label.better_with_account\" }}")))
|
|
|
|
(div
|
|
|
|
("class" "card flex gap-2")
|
|
|
|
(a
|
|
|
|
("href" "/auth/login")
|
|
|
|
("class" "button")
|
|
|
|
(text "{{ icon \"log-in\" }}")
|
|
|
|
(span
|
|
|
|
(text "{{ text \"auth:action.login\" }}")))
|
|
|
|
(a
|
|
|
|
("href" "/auth/register")
|
|
|
|
("class" "button secondary")
|
|
|
|
(text "{{ icon \"user-plus\" }}")
|
|
|
|
(span
|
|
|
|
(text "{{ text \"auth:action.register\" }}")))))
|
|
|
|
(text "{%- endif %}")
|
|
|
|
(div
|
|
|
|
("class" "card w-full flex flex-col gap-2")
|
2025-06-17 01:52:17 -04:00
|
|
|
("ui_ident" "io_data_load")
|
|
|
|
(div ("ui_ident" "io_data_marker"))))
|
|
|
|
|
2025-06-19 22:10:17 -04:00
|
|
|
(text "{% set paged = user and user.settings.paged_timelines %}")
|
2025-06-17 01:52:17 -04:00
|
|
|
(script
|
|
|
|
(text "setTimeout(() => {
|
2025-06-19 22:10:17 -04:00
|
|
|
trigger(\"ui::io_data_load\", [\"/_swiss_army_timeline?tl=AllPosts&page=\", Number.parseInt(\"{{ page }}\") - 1, \"{{ paged }}\" === \"true\"]);
|
2025-06-17 01:52:17 -04:00
|
|
|
});"))
|
2025-06-01 12:25:33 -04:00
|
|
|
|
|
|
|
(text "{% endblock %}")
|