Changed times on user profile to relative form
This commit is contained in:
parent
4c3bc0004b
commit
8176184b51
2 changed files with 3 additions and 2 deletions
|
@ -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}));
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue