fix: hide comments button if post has comments disabled
This commit is contained in:
parent
85c1c72cc4
commit
b5e060e8ae
1 changed files with 3 additions and 0 deletions
|
@ -248,12 +248,15 @@
|
||||||
(text "{%- endif %}")
|
(text "{%- endif %}")
|
||||||
(div
|
(div
|
||||||
("class" "flex gap-1 buttons_box")
|
("class" "flex gap-1 buttons_box")
|
||||||
|
(text "{% if post.context.comments_enabled %}")
|
||||||
(a
|
(a
|
||||||
("href" "/post/{{ post.id }}")
|
("href" "/post/{{ post.id }}")
|
||||||
("class" "button camo small")
|
("class" "button camo small")
|
||||||
(text "{{ icon \"message-circle\" }}")
|
(text "{{ icon \"message-circle\" }}")
|
||||||
(span
|
(span
|
||||||
(text "{{ post.comment_count }}")))
|
(text "{{ post.comment_count }}")))
|
||||||
|
(text "{% endif %}")
|
||||||
|
|
||||||
(a
|
(a
|
||||||
("href" "/post/{{ post.id }}")
|
("href" "/post/{{ post.id }}")
|
||||||
("class" "button camo small")
|
("class" "button camo small")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue