1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-01-30 18:53:36 +00:00
mipilin/views/journal_view.pug
roxwize a3e6df6ce8
Rae from website
Signed-off-by: roxwize <rae@roxwize.xyz>
2025-01-22 20:34:25 -05:00

23 lines
579 B
Text

extends site.pug
block content
form(action=`/journal/${entry.id}/edit`, method="post")
h1(style="display:flex;align-items:center;gap:1em;")
| #{entry.title}
if isSelf || isMod
div(style="display:flex;")
if isSelf
button(name="action", value="edit") edit
button(name="action", value="delete") delete
span
| by
a(href=`/users/${entry.uname}`)= entry.uname
|
span(title=entry.date.toLocaleString()) #{entryTimestamp}
br
br
div
| Mood:
strong= entry.moodString
br
div!= entry.content