Changed icons

This commit is contained in:
2023-05-18 15:38:06 -04:00
parent 77062a9e3e
commit 0580cb5d30

View File

@ -20,6 +20,17 @@
@push('page_scripts')
<script type="text/javascript">
const icons = {
debug: 'bug',
info: 'search',
notice: 'exclamation',
warning: 'exclamation triangle',
error: 'times',
critical: 'bug',
alert: 'bell',
emergency: 'ambulance',
deprecated: 'virus slash'
}
const logs = {
id: '',
start: 0,
@ -90,7 +101,7 @@
$('<div></div>').addClass('content').append(
$('<div></div>').addClass('header').append(
$('<span></span>').addClass(log.severity.toLowerCase()).css('padding', '1ex 1em').append(
$('<i></i>').addClass('bug icon')
$('<i></i>').addClass(icons[(log.severity.toLowerCase())] + ' icon')
).append(
((log.channel === '') ? '' : log.channel + '.') + log.severity
)