fix: journals ui panic

This commit is contained in:
trisua 2025-06-19 19:27:42 -04:00
parent dc50f3a8af
commit fa72d6a59d
2 changed files with 4 additions and 2 deletions

View file

@ -1928,7 +1928,7 @@
(text "{%- endif %}") (text "{%- endif %}")
; note listings ; note listings
(text "{% for note in notes %}") (text "{% for note in notes %} {% if not view_mode or note.title != \"journal.css\" -%}")
(div (div
("class" "flex flex-row gap-1") ("class" "flex flex-row gap-1")
(a (a
@ -1958,6 +1958,6 @@
(icon (text "trash")) (icon (text "trash"))
(str (text "general:action.delete"))))) (str (text "general:action.delete")))))
(text "{%- endif %}")) (text "{%- endif %}"))
(text "{% endfor %}")) (text "{%- endif %} {% endfor %}"))
(text "{%- endif %}") (text "{%- endif %}")
(text "{%- endmacro %}") (text "{%- endmacro %}")

View file

@ -68,10 +68,12 @@
("href" "/api/v1/auth/user/find/{{ journal.owner }}") ("href" "/api/v1/auth/user/find/{{ journal.owner }}")
(text "{{ components::avatar(username=journal.owner, selector_type=\"id\", size=\"18px\") }}")) (text "{{ components::avatar(username=journal.owner, selector_type=\"id\", size=\"18px\") }}"))
(text "{% if (view_mode and owner) or not view_mode -%}")
(a (a
("class" "flush") ("class" "flush")
("href" "{% if view_mode -%} /@{{ owner.username }}/{{ journal.title }} {%- else -%} /journals/{{ journal.id }}/0 {%- endif %}") ("href" "{% if view_mode -%} /@{{ owner.username }}/{{ journal.title }} {%- else -%} /journals/{{ journal.id }}/0 {%- endif %}")
(b (text "{{ journal.title }}"))) (b (text "{{ journal.title }}")))
(text "{%- endif %}")
(text "{% if note -%}") (text "{% if note -%}")
(span (text "/")) (span (text "/"))