Firewall/live log, replace color styles with classes, for https://github.com/opnsense/plugins/issues/912

This commit is contained in:
Ad Schellevis 2018-10-13 16:50:11 +02:00
parent f2b30558ac
commit fe21186e05

View File

@ -89,9 +89,9 @@ POSSIBILITY OF SUCH DAMAGE.
});
if (record['action'] == 'pass') {
log_tr.css('background', 'rgba(5, 142, 73, 0.3)');
log_tr.addClass('fw_pass');
} else if (record['action'] == 'block') {
log_tr.css('background', 'rgba(235, 9, 9, 0.3)');
log_tr.addClass('fw_block');
}
$("#grid-log > tbody > tr:first").before(log_tr);
}
@ -238,6 +238,12 @@ POSSIBILITY OF SUCH DAMAGE.
.act_info {
cursor: pointer;
}
.fw_pass {
background: rgba(5, 142, 73, 0.3);
}
.fw_block {
background: rgba(235, 9, 9, 0.3);
}
</style>
<div class="content-box">