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:
parent
0ecc741a98
commit
8e3ae72ae7
9 changed files with 78 additions and 13 deletions
|
@ -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]
|
||||
|
||||
|
|
|
@ -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!!!!
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue