Update static/js/pages/firewall.js

This commit is contained in:
Blackwhitebear8 2025-09-17 20:30:22 +02:00
parent 4bc0a6c851
commit 12cd8cb167

View file

@ -16,6 +16,8 @@ function renderRulesets(container, rulesets, ipVersion) {
let tableRows = '';
ruleset.rules.forEach(rule => {
const logUrl = `/firewall/log/${ipVersion.toLowerCase()}/${ruleset.name}/${rule.rule}`;
tableRows += `
<tr>
<td>${rule.rule}</td>
@ -24,6 +26,11 @@ function renderRulesets(container, rulesets, ipVersion) {
<td>${rule.packets}</td>
<td>${rule.bytes}</td>
<td style="word-break: break-all;">${rule.conditions}</td>
<td>
<a href="${logUrl}" target="_blank" class="btn btn-outline-secondary btn-sm" title="View Logs">
Logs
</a>
</td>
</tr>
`;
});
@ -42,6 +49,7 @@ function renderRulesets(container, rulesets, ipVersion) {
<th>Packets</th>
<th>Bytes</th>
<th>Conditions</th>
<th>Actions</th>
</tr>
</thead>
<tbody>