1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-01-31 02:53:36 +00:00
mipilin/views/user.pug
roxwize 7b563f5c31
i dont really know what i added
Signed-off-by: roxwize <rae@roxwize.xyz>
2024-11-17 14:16:27 -05:00

33 lines
835 B
Text

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]"
if user.website
br
a(href=user.website)= user.website
br
br
h2 Current mood
if userMood
span
| Feeling
|
strong
if isSelf
| #{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!
br
h2 Recent updates
include _feed.pug
+feed(userMoodFeed, true)