Project

General

Profile

Segnalazione #825

Mostrare i timestamp al secondo sulla tabella delle macchine anziché solo la data

Added by Elena Grandi almost 5 years ago. Updated almost 5 years ago.

Status:
Chiuso
Priority:
Normale
Assignee:
Start date:
05/30/2019
Due date:
% Done:

0%

Estimated time:
Resolution:

Associated revisions

Revision c38b7376 (diff)
Added by Enrico Zini almost 5 years ago

Use plain html tooltips. refs: #825

Revision 5cf78955 (diff)
Added by Mark Caglienzi almost 5 years ago

Use the <time> element, and add the tooltip also in the last_seen cell. refs #825

Revision c725f7c8
Added by Enrico Zini almost 5 years ago

Merged t825. Closes: #825

History

#1

Updated by Enrico Zini almost 5 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.

#2

Updated by Enrico Zini almost 5 years ago

  • Target version changed from 0.99 feature future to 0.10 Prima validazione interfaccia
#3

Updated by Mark Caglienzi almost 5 years ago

  • Status changed from Nuovo to In elaborazione
#4

Updated by Mark Caglienzi almost 5 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_seen e last_seen usando .fromNow() di moment.js
  • Aggiunti i tooltip con la data/ora completa in formato YYYY-MM-DD HH:mm:ss nei rispettivi campi

Pushato il branch t825 per la review.

#5

Updated by Enrico Zini almost 5 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?

#6

Updated by Mark Caglienzi almost 5 years ago

  • Status changed from Commenti to In elaborazione
#7

Updated by Mark Caglienzi almost 5 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

#8

Updated by Enrico Zini almost 5 years ago

  • Status changed from Commenti to Chiuso

Ottimo, mergiato in master.

Also available in: Atom PDF