add: utility classes for posts and questions
This commit is contained in:
parent
d67bf26955
commit
52c8983634
1 changed files with 3 additions and 3 deletions
|
@ -117,7 +117,7 @@
|
|||
(text "{{ self::post(post=post, owner=owner, secondary=secondary, community=community, show_community=show_community, can_manage_post=can_manage_post, repost=repost, expect_repost=true) }}"))
|
||||
(text "{%- endmacro %} {% macro post(post, owner, question=false, secondary=false, community=false, show_community=true, can_manage_post=false, repost=false, expect_repost=false, poll=false, dont_show_title=false) -%} {% if community and show_community and community.id != config.town_square or question %}")
|
||||
(div
|
||||
("class" "card-nest post_outer:{{ post.id }}")
|
||||
("class" "card-nest post_outer:{{ post.id }} post_outer")
|
||||
(text "{% if question -%} {{ self::question(question=question[0], owner=question[1], profile=owner) }} {% else %}")
|
||||
(div
|
||||
("class" "card small")
|
||||
|
@ -130,7 +130,7 @@
|
|||
(text "{% if post.context.is_pinned or post.context.is_profile_pinned -%} {{ icon \"pin\" }} {%- endif %}")))
|
||||
(text "{%- endif %} {%- endif %}")
|
||||
(div
|
||||
("class" "card flex flex-col gap-2 post:{{ post.id }} {% if secondary -%}secondary{%- endif %}")
|
||||
("class" "card flex flex-col post gap-2 post:{{ post.id }} {% if secondary -%}secondary{%- endif %}")
|
||||
("data-community" "{{ post.community }}")
|
||||
("data-ownsup" "{{ owner.permissions|has_supporter }}")
|
||||
("hook" "verify_emojis")
|
||||
|
@ -612,7 +612,7 @@
|
|||
|
||||
(text "{%- endif %} {%- endmacro %} {% macro question(question, owner, show_community=true, secondary=false, profile=false) -%}")
|
||||
(div
|
||||
("class" "card {% if secondary -%}secondary{%- endif %} flex gap-2")
|
||||
("class" "card question {% if secondary -%}secondary{%- endif %} flex gap-2")
|
||||
(text "{% if owner.id == 0 -%}")
|
||||
(span
|
||||
(text "{% if profile and profile.settings.anonymous_avatar_url -%}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue