simpkey/src/views/react.pug

20 lines
719 B
Plaintext
Raw Normal View History

2020-07-23 20:53:44 +02:00
extends _base
block content
2020-07-24 06:58:36 +02:00
if canReact
h2 このノートにリアクションを押しますか?
+sub-note(note)
form(action="/action/react", method="post")
each val in reactions
div: label
input(type="radio", name="reaction" value=val)
!= val
2020-07-23 20:53:44 +02:00
div: label
2020-07-24 06:58:36 +02:00
input(type="radio", name="reaction", value="custom")
input(type="text", name="customReaction")
input(type="hidden", name="noteId", value=note.id)
2020-07-23 20:53:44 +02:00
2020-07-24 06:58:36 +02:00
button(type="submit") リアクションを押す
else
h2 このノートにはリアクションできません
+sub-note(note)