1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-05-07 22:13:07 +00:00

Rae from website

Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2025-01-22 20:34:25 -05:00
parent 453a143bfa
commit a3e6df6ce8
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
13 changed files with 691 additions and 35 deletions

9
views/confirm.pug Normal file
View file

@ -0,0 +1,9 @@
extends site.pug
block content
form(action=url, method="post")
for [k, v] of Object.entries(body)
input(type="text", name=k, value=v, hidden)
p Sure you want to do this??
button(name="confirm", value="y") Yes
button(onclick="history.back();") NO!!!!

View file

@ -1,7 +1,14 @@
extends site.pug
block content
h1= entry.title
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

View file

@ -34,7 +34,15 @@ block content
for entry of userJournalEntries
li
a(href=`/journal/${entry.id}`)= entry.title
span.subtle(title=entry.date.toLocaleString()) (#{entry.relativeDate})
span.subtle(title=entry.date.toLocaleString())
| (#{entry.relativeDate}
if entry.visibility !== 1
| ,
if entry.visibility === 0
| private
if entry.visibility === 2
| mood-only
| )
else
div [no entries]
br