Rows turning red...finally, might want to pick a less blinding red.
This commit is contained in:
parent
11d8d76cc0
commit
8c29423d6d
@ -179,8 +179,8 @@ app.get('/core/:id', function(req, res){
|
|||||||
row.pubDate = alertmonUtils.getLocDateFromUTC(row.published_at);
|
row.pubDate = alertmonUtils.getLocDateFromUTC(row.published_at);
|
||||||
row.pubTime = alertmonUtils.getLocTimeFromUTC(row.published_at);
|
row.pubTime = alertmonUtils.getLocTimeFromUTC(row.published_at);
|
||||||
if(row.status.toLowerCase().indexOf('alert') > -1){
|
if(row.status.toLowerCase().indexOf('alert') > -1){
|
||||||
row.isAlert = 1;
|
row.rowClass = 'alert-row';
|
||||||
}
|
} else { row.rowClass = 'non-alert-row'; }
|
||||||
});
|
});
|
||||||
|
|
||||||
res.render('core', {alerts: rows}, function(err, html) {
|
res.render('core', {alerts: rows}, function(err, html) {
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{#each alerts}}
|
{{#each alerts}}
|
||||||
<tr class=\"{{this.isAlert}}\">
|
<tr class="{{this.rowClass}}">
|
||||||
<td>{{this.pubDate}}</td>
|
<td>{{this.pubDate}}</td>
|
||||||
<td>{{this.pubTime}}</td>
|
<td>{{this.pubTime}}</td>
|
||||||
<td>{{this.status}}</td>
|
<td>{{this.status}}</td>
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
|
||||||
<!-- Optional theme -->
|
<!-- Optional theme -->
|
||||||
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> -->
|
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> -->
|
||||||
|
|
||||||
|
<style type="text/css">tr.alert-row {background-color:#FF0000 !important;} </style>
|
||||||
</head>
|
</head>
|
||||||
<body class="container-fluid">
|
<body class="container-fluid">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user