mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 12:35:13 +00:00
[Web] Display birthday into user page
This commit is contained in:
parent
5ccfbad3d0
commit
dd45b8d216
2 changed files with 19 additions and 2 deletions
|
@ -3,6 +3,9 @@ mk-user-profile
|
||||||
mk-big-follow-button(user={ user })
|
mk-big-follow-button(user={ user })
|
||||||
p.followed(if={ user.is_followed }) フォローされています
|
p.followed(if={ user.is_followed }) フォローされています
|
||||||
div.bio(if={ user.bio != '' }) { user.bio }
|
div.bio(if={ user.bio != '' }) { user.bio }
|
||||||
|
div.birthday(if={ user.birthday }): p
|
||||||
|
i.fa.fa-birthday-cake
|
||||||
|
| { user.birthday.replace('-', '年').replace('-', '月') + '日' }
|
||||||
div.friends
|
div.friends
|
||||||
p.following
|
p.following
|
||||||
i.fa.fa-angle-right
|
i.fa.fa-angle-right
|
||||||
|
@ -44,6 +47,17 @@ style.
|
||||||
color #555
|
color #555
|
||||||
border-top solid 1px #eee
|
border-top solid 1px #eee
|
||||||
|
|
||||||
|
> .birthday
|
||||||
|
padding 16px
|
||||||
|
color #555
|
||||||
|
border-top solid 1px #eee
|
||||||
|
|
||||||
|
> p
|
||||||
|
margin 0
|
||||||
|
|
||||||
|
> i
|
||||||
|
margin-right 8px
|
||||||
|
|
||||||
> .friends
|
> .friends
|
||||||
padding 16px
|
padding 16px
|
||||||
color #555
|
color #555
|
||||||
|
|
|
@ -18,6 +18,9 @@ mk-user
|
||||||
p.location(if={ user.location })
|
p.location(if={ user.location })
|
||||||
i.fa.fa-map-marker
|
i.fa.fa-map-marker
|
||||||
| { user.location }
|
| { user.location }
|
||||||
|
p.birthday(if={ user.birthday })
|
||||||
|
i.fa.fa-birthday-cake
|
||||||
|
| { user.birthday.replace('-', '年').replace('-', '月') + '日' }
|
||||||
|
|
||||||
div.friends
|
div.friends
|
||||||
a(href='{ user.username }/following')
|
a(href='{ user.username }/following')
|
||||||
|
@ -115,9 +118,9 @@ style.
|
||||||
> .info
|
> .info
|
||||||
margin 8px 0
|
margin 8px 0
|
||||||
|
|
||||||
> .location
|
> p
|
||||||
display inline
|
display inline
|
||||||
margin 0
|
margin 0 16px 0 0
|
||||||
color #555
|
color #555
|
||||||
|
|
||||||
> i
|
> i
|
||||||
|
|
Loading…
Reference in a new issue