mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Tony Murray
parent
5ea4d3154d
commit
4001f8c60a
@@ -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>
|
||||
|
Reference in New Issue
Block a user