diff --git a/package.json b/package.json index 5181b12f03..3fd0ae1237 100644 --- a/package.json +++ b/package.json @@ -135,6 +135,7 @@ "riot-compiler": "3.1.1", "riotify": "2.0.0", "rndstr": "1.0.0", + "s-age": "1.1.0", "serve-favicon": "2.3.2", "shelljs": "0.7.6", "subdomain": "1.2.0", diff --git a/src/web/app/desktop/tags/user-profile.tag b/src/web/app/desktop/tags/user-profile.tag index 12101ed633..710da14028 100644 --- a/src/web/app/desktop/tags/user-profile.tag +++ b/src/web/app/desktop/tags/user-profile.tag @@ -5,7 +5,7 @@
{ user.bio }
-

{ user.birthday.replace('-', '年').replace('-', '月') + '日' }

+

{ user.birthday.replace('-', '年').replace('-', '月') + '日' } ({ age(user.birthday) }歳)

@{ user.twitter.screen_name }

@@ -80,6 +80,8 @@