tetratto/crates/app/src/public/html/timelines/popular.lisp
trisua 0dede99682 add: better mobile ui for timeline pages
add: rename button classes (quaternary->lowered, tertiary->raised)
2025-06-12 13:53:23 -04:00

13 lines
944 B
Common Lisp

(text "{% extends \"root.html\" %} {% block head %}")
(title
(text "Popular - {{ config.name }}"))
(text "{% endblock %} {% block body %} {{ macros::nav(selected=\"popular\") }}")
(main
("class" "flex flex-col gap-2")
(text "{{ macros::timelines_nav(selected=\"popular\", posts=\"/popular\", questions=\"/popular/questions\") }}")
(div
("class" "card w-full flex flex-col gap-2")
(text "{% 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], poll=post[5]) }} {%- endif %} {%- endif %} {% endfor %} {{ components::pagination(page=page, items=list|length) }}")))
(text "{% endblock %}")