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() {
|
function render() {
|
||||||
$el.html(template({
|
$el.html(template({
|
||||||
user: user,
|
user: user,
|
||||||
|
formatRelativeTime: util.formatRelativeTime,
|
||||||
canChangeBrowsingSettings: userBrowsingSettingsPresenter.getPrivileges().canChangeBrowsingSettings,
|
canChangeBrowsingSettings: userBrowsingSettingsPresenter.getPrivileges().canChangeBrowsingSettings,
|
||||||
canChangeAccountSettings: _.any(userAccountSettingsPresenter.getPrivileges()),
|
canChangeAccountSettings: _.any(userAccountSettingsPresenter.getPrivileges()),
|
||||||
canDeleteAccount: userAccountRemovalPresenter.getPrivileges().canDeleteAccount}));
|
canDeleteAccount: userAccountRemovalPresenter.getPrivileges().canDeleteAccount}));
|
||||||
|
|
|
@ -43,12 +43,12 @@
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Registered:</td>
|
<td>Registered:</td>
|
||||||
<td><%= user.registrationTime %></td>
|
<td><%= formatRelativeTime(user.registrationTime) %></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Seen:</td>
|
<td>Seen:</td>
|
||||||
<td><%= user.lastLoginTime %></td>
|
<td><%= formatRelativeTime(user.lastLoginTime) %></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue