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

joo can now delete mood updats

Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2025-01-31 17:07:06 -05:00
parent 0ecc741a98
commit 8e3ae72ae7
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
9 changed files with 78 additions and 13 deletions

View file

@ -9,7 +9,13 @@ mixin feed(feed, hideUser)
| #{update.user}
strong= update.mood
div= update.desc || "[no mood description provided]"
div(title=update.date.toLocaleString())= update.relativeDate
.feed-update-footer
.feed-update-actions
if update.user === session.user || session.status & 0b0001
form(action="/mood/delete", method="post")
input(type="number", name="upd", value=update.id, style="display:none;", readonly)
button.button-link(title="Delete this update") x
.feed-update-date(title=update.date.toLocaleString())= update.relativeDate
else
span [no updates]

View file

@ -6,4 +6,4 @@ block content
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!!!!
button(name="confirm", value="n") NO!!!!

View file

@ -40,7 +40,7 @@ block content
a(href="#invite-codes") Invite codes
p This is where you "MIPILIN"! That is all you need to know!!!
p If onlookers notice your actions and inquire about what you are doing, you MUST tell them that you are mipilining all over the place, and then PROMPTLY SCROLL DOWN AND GENERATE AN INVITE CODE SO THAT THEY CAN MIPILIN TOO.
form#dashboard-update-form(action="/update/mood", method="post")
form#dashboard-update-form(action="/mood/update", method="post")
select(name="mood", required)
//- Maybe put the index of the mood in the value of the option element
//- so that indexOf (slow) wont have to be used everytime mood is updated

View file

@ -8,7 +8,7 @@ block content
h1 Your Journal
p This is where you can log your overall mood every day, and get a glimpse at how your life is going so far!
p In the near future there will be a magnificient graph that will let you visualize your past entries and your mood trends. You must tay stuned.
form#journal-update(action="/update/journal", method="post")
form#journal-update(action="/journal/update", method="post")
.input
span Overall mood change (how do you feel compared to yesterday?)
#ovm