[TASK] Show last update relativ to now

This commit is contained in:
Geno 2017-10-29 11:00:22 +01:00 committed by Xaver Maierhofer
parent 10ab1ead2c
commit 914f6a344b
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
1 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,7 @@ define(['helper'], function (helper) {
_.t('sidebar.clients', { smart_count: totalClients }) + ' ' +
_.t('sidebar.gateway', { smart_count: totalGateways });
timestamp.textContent = _.t('sidebar.lastUpdate') + ': ' + d.timestamp.format('DD.MM.Y HH:mm');
timestamp.textContent = _.t('sidebar.lastUpdate') + ' ' + d.timestamp.fromNow();
};
self.render = function render(el) {
@ -33,7 +33,6 @@ define(['helper'], function (helper) {
var p = document.createElement('p');
p.classList.add('legend');
p.appendChild(document.createElement('br'));
p.appendChild(stats);
p.appendChild(document.createElement('br'));
p.appendChild(timestamp);