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:
parent
453a143bfa
commit
a3e6df6ce8
13 changed files with 691 additions and 35 deletions
9
views/confirm.pug
Normal file
9
views/confirm.pug
Normal 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!!!!
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue