From dd45b8d21672fab0eb8ac8371a3ffa25d7c2488e Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 6 Jan 2017 15:51:31 +0900 Subject: [PATCH] [Web] Display birthday into user page --- src/web/app/desktop/tags/user-profile.tag | 14 ++++++++++++++ src/web/app/mobile/tags/user.tag | 7 +++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/web/app/desktop/tags/user-profile.tag b/src/web/app/desktop/tags/user-profile.tag index 195aefcdf7..adb685845c 100644 --- a/src/web/app/desktop/tags/user-profile.tag +++ b/src/web/app/desktop/tags/user-profile.tag @@ -3,6 +3,9 @@ mk-user-profile mk-big-follow-button(user={ user }) p.followed(if={ user.is_followed }) フォローされています div.bio(if={ user.bio != '' }) { user.bio } + div.birthday(if={ user.birthday }): p + i.fa.fa-birthday-cake + | { user.birthday.replace('-', '年').replace('-', '月') + '日' } div.friends p.following i.fa.fa-angle-right @@ -44,6 +47,17 @@ style. color #555 border-top solid 1px #eee + > .birthday + padding 16px + color #555 + border-top solid 1px #eee + + > p + margin 0 + + > i + margin-right 8px + > .friends padding 16px color #555 diff --git a/src/web/app/mobile/tags/user.tag b/src/web/app/mobile/tags/user.tag index 8f4c04cf9c..1ecbc3d99e 100644 --- a/src/web/app/mobile/tags/user.tag +++ b/src/web/app/mobile/tags/user.tag @@ -18,6 +18,9 @@ mk-user p.location(if={ user.location }) i.fa.fa-map-marker | { user.location } + p.birthday(if={ user.birthday }) + i.fa.fa-birthday-cake + | { user.birthday.replace('-', '年').replace('-', '月') + '日' } div.friends a(href='{ user.username }/following') @@ -115,9 +118,9 @@ style. > .info margin 8px 0 - > .location + > p display inline - margin 0 + margin 0 16px 0 0 color #555 > i