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) %> |