add: global notes
This commit is contained in:
parent
59581f69c9
commit
2cd04b0db0
24 changed files with 371 additions and 608 deletions
|
@ -2138,15 +2138,32 @@
|
|||
(icon (text "pencil"))
|
||||
(str (text "chats:action.rename")))
|
||||
(a
|
||||
("class" "button")
|
||||
("href" "/journals/{{ journal.id }}/{{ note.id }}#/tags")
|
||||
(icon (text "tag"))
|
||||
(str (text "journals:action.edit_tags")))
|
||||
(button
|
||||
("class" "button")
|
||||
("onclick" "window.NOTE_MOVER_NOTE_ID = '{{ note.id }}'; document.getElementById('note_mover_dialog').showModal()")
|
||||
(icon (text "brush-cleaning"))
|
||||
(str (text "journals:action.move")))
|
||||
(text "{% if note.is_global -%}")
|
||||
(a
|
||||
("class" "button")
|
||||
("href" "/x/{{ note.title }}")
|
||||
(icon (text "eye"))
|
||||
(str (text "journals:action.view")))
|
||||
|
||||
(button
|
||||
("class" "purple")
|
||||
("onclick" "unpublish_note('{{ note.id }}')")
|
||||
(icon (text "globe-lock"))
|
||||
(str (text "journals:action.unpublish")))
|
||||
(text "{% elif note.title != 'journal.css' %}")
|
||||
(button
|
||||
("class" "green")
|
||||
("onclick" "publish_note('{{ note.id }}')")
|
||||
(icon (text "globe"))
|
||||
(str (text "journals:action.publish")))
|
||||
(text "{%- endif %}")
|
||||
(button
|
||||
("onclick" "delete_note('{{ note.id }}')")
|
||||
("class" "red")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue