nicer online state

This commit is contained in:
Martin Geno 2016-06-24 04:19:07 +02:00
parent 2d649afe89
commit 8422d7c24a
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ function routeNodes(){
Object.keys(internal.nodes).map(function(key){ Object.keys(internal.nodes).map(function(key){
fill += '<tr>' fill += '<tr>'
+ '<td class="mdl-data-table__cell--non-numeric" rowspan="2" style="padding:0px 2px;text-align:center;">' + '<td class="mdl-data-table__cell--non-numeric" rowspan="2" style="padding:0px 2px;text-align:center;">'
+ '<span style="color:'+((internal.nodes[key].flags.online)?'green':'red')+';">&#x25cf;</span><br/>' + '<span style="font-size:20px;color:'+((internal.nodes[key].flags.online)?'green':'red')+';">&#x25cf;</span><br/>'
+ moment(internal.nodes[key].lastseen).fromNow(true) + moment(internal.nodes[key].lastseen).fromNow(true)
+'</td>' +'</td>'
+ '<td class="mdl-data-table__cell--non-numeric mdt-table__cell-input" rowspan="2">' + '<td class="mdl-data-table__cell--non-numeric mdt-table__cell-input" rowspan="2">'