Segnalazione #825
Mostrare i timestamp al secondo sulla tabella delle macchine anziché solo la data
Start date:
05/30/2019
Due date:
% Done:
0%
Estimated time:
Resolution:
Associated revisions
Use the <time> element, and add the tooltip also in the last_seen cell. refs #825
Merged t825. Closes: #825
History
Updated by Enrico Zini over 6 years ago
- Assignee set to Mark Caglienzi
Possiamo iniziare a usare moment.js per formattare i first/last seen come elapsed time ("4 hours ago") con un tooltip con la data/ora completa.
Updated by Enrico Zini over 6 years ago
- Target version changed from 0.99 feature future to 0.10 Prima validazione interfaccia
Updated by Mark Caglienzi over 6 years ago
- Status changed from In elaborazione to Commenti
- Assignee changed from Mark Caglienzi to Enrico Zini
- Aggiunta moment.js alle dipendenze (pacchetto
libjs-moment) - Aggiunto il caricamento di moment-with-locales.min.js a
base.html - Modificato l'output in tabella nelle colonne
first_seenelast_seenusando.fromNow()di moment.js - Aggiunti i tooltip con la data/ora completa in formato
YYYY-MM-DD HH:mm:ssnei rispettivi campi
Pushato il branch t825 per la review.
Updated by Enrico Zini over 6 years ago
- Assignee changed from Enrico Zini to Mark Caglienzi
Ho visto la patch.
Sarebbe possibile ripristinare questo codice nella render(group_name):
let rows = []
for (let machine of machine_list)
rows.push(machine);
this.datatable.clear();
this.datatable.rows.add(rows);
this.datatable.draw();
e fare il rendering come html con tooltip invece nella funzione render: (data, type, row, meta) delle colonne corrispondenti?
Updated by Mark Caglienzi over 6 years ago
- Status changed from In elaborazione to Commenti
- Assignee changed from Mark Caglienzi to Enrico Zini
Dopo averci guardato insieme, e con il consiglio di Elena su <time>, ora sembra andare come dovrebbe, con la sintassi moderna, e senza l'uso di javascript/bootstrap.
Pushato t825
Updated by Enrico Zini over 6 years ago
- Status changed from Commenti to Chiuso
Ottimo, mergiato in master.
Use plain html tooltips. refs: #825