Changed times on user profile to relative form

This commit is contained in:
Marcin Kurczewski 2014-09-16 19:24:03 +02:00
parent 4c3bc0004b
commit 8176184b51
2 changed files with 3 additions and 2 deletions

View file

@ -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}));

View file

@ -43,12 +43,12 @@
<table>
<tr>
<td>Registered:</td>
<td><%= user.registrationTime %></td>
<td><%= formatRelativeTime(user.registrationTime) %></td>
</tr>
<tr>
<td>Seen:</td>
<td><%= user.lastLoginTime %></td>
<td><%= formatRelativeTime(user.lastLoginTime) %></td>
</tr>
</table>
</div>