From 8176184b51cf5b64fbb4a3275b4417a7e7bccc14 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 16 Sep 2014 19:24:03 +0200 Subject: [PATCH] Changed times on user profile to relative form --- public_html/js/Presenters/UserPresenter.js | 1 + public_html/templates/user.tpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public_html/js/Presenters/UserPresenter.js b/public_html/js/Presenters/UserPresenter.js index 79a2b62c..800ed9ca 100644 --- a/public_html/js/Presenters/UserPresenter.js +++ b/public_html/js/Presenters/UserPresenter.js @@ -60,6 +60,7 @@ App.Presenters.UserPresenter = function( function render() { $el.html(template({ user: user, + formatRelativeTime: util.formatRelativeTime, canChangeBrowsingSettings: userBrowsingSettingsPresenter.getPrivileges().canChangeBrowsingSettings, canChangeAccountSettings: _.any(userAccountSettingsPresenter.getPrivileges()), canDeleteAccount: userAccountRemovalPresenter.getPrivileges().canDeleteAccount})); diff --git a/public_html/templates/user.tpl b/public_html/templates/user.tpl index 1d7f3ab9..1c37a6dd 100644 --- a/public_html/templates/user.tpl +++ b/public_html/templates/user.tpl @@ -43,12 +43,12 @@ - + - +
Registered:<%= user.registrationTime %><%= formatRelativeTime(user.registrationTime) %>
Seen:<%= user.lastLoginTime %><%= formatRelativeTime(user.lastLoginTime) %>