mirror of
https://git.sr.ht/~roxwize/mipilin
synced 2025-05-13 08:43:07 +00:00
:(
Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
parent
afc634b0d2
commit
d173e6ea73
22 changed files with 1433 additions and 472 deletions
|
@ -2,20 +2,21 @@ extends site.pug
|
|||
|
||||
//- Display mood here but keep yourself dry (i.e. dont request user mood if the profile being viewed is the profile of the currently logged-in user)
|
||||
block content
|
||||
h1= user.name
|
||||
if !isSelf
|
||||
form(action=`/users/${user.name}/follow`, method="post")
|
||||
button(type="submit")= isFollowing ? "unfollow" : "follow"
|
||||
br
|
||||
span= user.bio || "[no bio]"
|
||||
div(style="display:flex;align-items:center;gap:8px;")
|
||||
h1= user.name
|
||||
if !isSelf
|
||||
form(action=`/users/${user.name}/follow`, method="post")
|
||||
button(type="submit")= isFollowing ? "unfollow" : "follow"
|
||||
br
|
||||
div(style="margin-bottom:1em;")
|
||||
| Joined
|
||||
span(title=user.registered.toLocaleString())= user.relativeRegistered
|
||||
div= user.bio || "[no bio]"
|
||||
if user.website
|
||||
br
|
||||
a(href=user.website)= user.website
|
||||
br
|
||||
br
|
||||
h2 Current mood
|
||||
h2(style="margin-top:1em;") Current mood
|
||||
if userMood
|
||||
span
|
||||
div
|
||||
| Feeling
|
||||
|
|
||||
strong
|
||||
|
@ -23,11 +24,20 @@ block content
|
|||
| #{currentMood}
|
||||
else
|
||||
| #{userMood.mood}
|
||||
br
|
||||
div(style="margin-left:2ch;word-wrap:break-word;")= userMood.desc || "[no mood description]"
|
||||
else
|
||||
span User has not yet set a mood!
|
||||
div User has not yet set a mood!
|
||||
br
|
||||
h2 Recent updates
|
||||
h2 Recent journal entries
|
||||
if userJournalEntries.length > 0
|
||||
ul
|
||||
for entry of userJournalEntries
|
||||
li
|
||||
a(href=`/journal/${entry.id}`)= entry.title
|
||||
span.subtle(title=entry.date.toLocaleString()) (#{entry.relativeDate})
|
||||
else
|
||||
div [no entries]
|
||||
br
|
||||
h2 Recent mood updates
|
||||
include _feed.pug
|
||||
+feed(userMoodFeed, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue