add: finish ui rewrite
This commit is contained in:
parent
e9846016e6
commit
5dec98d698
119 changed files with 8776 additions and 9350 deletions
88
crates/app/src/public/html/post/reposts.lisp
Normal file
88
crates/app/src/public/html/post/reposts.lisp
Normal file
|
@ -0,0 +1,88 @@
|
|||
(text "{% extends \"root.html\" %} {% block head %}")
|
||||
(title
|
||||
(text "Post reposts - {{ config.name }}"))
|
||||
|
||||
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
|
||||
(main
|
||||
("class" "flex flex-col gap-2")
|
||||
(text "{% if post.replying_to -%}")
|
||||
(a
|
||||
("href" "/post/{{ post.replying_to }}")
|
||||
("class" "button")
|
||||
(text "{{ icon \"arrow-up\" }}")
|
||||
(span
|
||||
(text "{{ text \"communities:action.continue_thread\" }}")))
|
||||
(text "{%- endif %}")
|
||||
(div
|
||||
("style" "display: contents;")
|
||||
(text "{% if post.context.repost and post.context.repost.reposting -%} {{ components::repost(repost=reposting, post=post, owner=owner, community=community, show_community=true, can_manage_post=can_manage_posts) }} {% else %} {{ components::post(post=post, owner=owner, question=question, community=community, show_community=true, can_manage_post=can_manage_posts) }} {%- endif %}"))
|
||||
(div
|
||||
("class" "pillmenu")
|
||||
(a
|
||||
("href" "/post/{{ post.id }}#/replies")
|
||||
(text "{{ icon \"newspaper\" }}")
|
||||
(span
|
||||
(text "{{ text \"communities:label.replies\" }}")))
|
||||
(a
|
||||
("href" "/post/{{ post.id }}/reposts")
|
||||
("class" "active")
|
||||
(text "{{ icon \"repeat-2\" }}")
|
||||
(span
|
||||
(text "{{ text \"communities:label.reposts\" }}")))
|
||||
(a
|
||||
("href" "/post/{{ post.id }}/reposts?quotes=true")
|
||||
(text "{{ icon \"quote\" }}")
|
||||
(span
|
||||
(text "{{ text \"communities:label.quotes\" }}"))))
|
||||
(text "{% if (user and user.id == post.owner) or can_manage_posts -%}")
|
||||
(div
|
||||
("class" "pillmenu")
|
||||
(text "{% if user and user.id == post.owner -%}")
|
||||
(a
|
||||
("href" "/post/{{ post.id }}#/edit")
|
||||
(text "{{ icon \"pen\" }}")
|
||||
(span
|
||||
(text "{{ text \"communities:label.edit_content\" }}")))
|
||||
(text "{%- endif %}")
|
||||
(a
|
||||
("href" "/post/{{ post.id }}/likes")
|
||||
(text "{{ icon \"heart\" }}")
|
||||
(span
|
||||
(text "{{ text \"communities:label.likes\" }}")))
|
||||
(a
|
||||
("href" "/post/{{ post.id }}#/configure")
|
||||
(text "{{ icon \"settings\" }}")
|
||||
(span
|
||||
(text "{{ text \"communities:action.configure\" }}"))))
|
||||
(text "{%- endif %}")
|
||||
(div
|
||||
("class" "card-nest w-full")
|
||||
(div
|
||||
("class" "card small flex items-center gap-2")
|
||||
(text "{{ icon \"repeat-2\" }}")
|
||||
(span
|
||||
(text "{{ text \"communities:label.reposts\" }}")))
|
||||
(div
|
||||
("class" "card flex flex-col gap-4")
|
||||
(text "{% for post in list %}")
|
||||
(div
|
||||
("class" "card-nest")
|
||||
(div
|
||||
("class" "card flex items-center gap-2")
|
||||
(a
|
||||
("href" "/@{{ post[1].username }}")
|
||||
(text "{{ components::avatar(username=post[1].username, size=\"24px\", selector_type=\"username\") }}"))
|
||||
(div
|
||||
("class" "name")
|
||||
(text "{{ components::full_username(user=post[1]) }}")))
|
||||
(div
|
||||
("class" "card flex items-center gap-2 flex-wrap secondary")
|
||||
(a
|
||||
("href" "/post/{{ post[0].id }}")
|
||||
("class" "quaternary small button")
|
||||
(text "{{ icon \"external-link\" }}")
|
||||
(span
|
||||
(text "{{ text \"general:action.open\" }}")))))
|
||||
(text "{% endfor %} {{ components::pagination(page=page, items=list|length, key=\"quotes\", value=\"false\") }}"))))
|
||||
|
||||
(text "{% endblock %}")
|
Loading…
Add table
Add a link
Reference in a new issue