[TASK] Show last update relativ to now
This commit is contained in:
parent
10ab1ead2c
commit
914f6a344b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user