mirror of
https://git.sr.ht/~roxwize/mipilin
synced 2025-05-13 08:43:07 +00:00
this is the initial commit for my AWESOME website
Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
commit
e3c09d7f0d
42 changed files with 5710 additions and 0 deletions
30
views/user.pug
Normal file
30
views/user.pug
Normal file
|
@ -0,0 +1,30 @@
|
|||
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!
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue