added bg color to propagation time

This commit is contained in:
cubedro 2015-04-09 17:21:28 +03:00
parent 75cad7ff21
commit f7094cda14
2 changed files with 17 additions and 5 deletions

View File

@ -22,10 +22,22 @@ body {
background: #FFD162;
}
.bg-orange {
background: #ff8a00;
}
.bg-danger {
background: #F74B4B;
}
.bg-success,
.bg-info,
.bg-warning,
.bg-orange,
.bg-danger {
color: #000;
}
.text-gray {
color: #777 !important;
}

View File

@ -92,18 +92,18 @@ angular.module('netStatsApp.filters', [])
return 'text-gray';
if(stats.block.propagation == 0)
return 'text-info';
return 'bg-info';
if(stats.block.propagation < 1000)
return 'text-success';
return 'bg-success';
if(stats.block.propagation < 3000)
return 'text-warning';
return 'bg-warning';
if(stats.block.propagation < 7000)
return 'text-orange';
return 'bg-orange';
return 'text-danger'
return 'bg-danger'
};
})
.filter('latencyFilter', function() {