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

View file

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