diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-23 15:18:45 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-23 15:18:45 +0900 |
| commit | 6af87eef2282eda2d4e9b36a15ccaced6204effc (patch) | |
| tree | 216c688936ae747cf2e0ab339b02c88847a70a76 /src/web/app/mobile | |
| parent | [Server] Fix query performance (diff) | |
| download | misskey-6af87eef2282eda2d4e9b36a15ccaced6204effc.tar.gz misskey-6af87eef2282eda2d4e9b36a15ccaced6204effc.tar.bz2 misskey-6af87eef2282eda2d4e9b36a15ccaced6204effc.zip | |
[Client] Display age
Diffstat (limited to 'src/web/app/mobile')
| -rw-r--r-- | src/web/app/mobile/tags/user.tag | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/app/mobile/tags/user.tag b/src/web/app/mobile/tags/user.tag index 76b694a464..80884be313 100644 --- a/src/web/app/mobile/tags/user.tag +++ b/src/web/app/mobile/tags/user.tag @@ -12,7 +12,7 @@ <div class="bio">{ user.bio }</div> <div class="info"> <p class="location" if={ user.location }><i class="fa fa-map-marker"></i>{ user.location }</p> - <p class="birthday" if={ user.birthday }><i class="fa fa-birthday-cake"></i>{ user.birthday.replace('-', '年').replace('-', '月') + '日' }</p> + <p class="birthday" if={ user.birthday }><i class="fa fa-birthday-cake"></i>{ user.birthday.replace('-', '年').replace('-', '月') + '日' } ({ age(user.birthday) }歳)</p> </div> <div class="friends"><a href="{ user.username }/following"><b>{ user.following_count }</b><i>フォロー</i></a><a href="{ user.username }/followers"><b>{ user.followers_count }</b><i>フォロワー</i></a></div> </div> @@ -154,6 +154,8 @@ </style> <script> + @age = require \s-age + @mixin \i @mixin \api |