mirror of
https://git.sr.ht/~roxwize/mipilin
synced 2025-01-31 02:53:36 +00:00
31 lines
763 B
Text
31 lines
763 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!
|
||
|
|