webui: Updated bootgrid + added syslog colouring based on priority (#4287)

* Updated bootgrid + added syslog colouring based on priority

* Updated functions and removed uneeded file
This commit is contained in:
Neil Lathwood
2016-09-06 13:39:53 +01:00
committed by Tony Murray
parent 5ea4d3154d
commit 4001f8c60a
52 changed files with 588 additions and 14209 deletions

View File

@@ -10,6 +10,7 @@ $common_output[] = '
<th data-column-id="device_id">Hostname</th>
<th data-column-id="program">Program</th>
<th data-column-id="msg">Message</th>
<th data-column-id="status">Message</th>
</tr>
</thead>
</table>
@@ -29,7 +30,14 @@ var syslog_grid = $("#syslog").bootgrid({
from: "'.mres($vars['from']).'",
};
},
url: "ajax_table.php"
url: "ajax_table.php",
statusMappings: {
// Nagios style
0: "text-muted",
1: "warning",
2: "danger",
3: "info"
}
});
</script>