Update static/js/pages/firewall.js
This commit is contained in:
parent
4bc0a6c851
commit
12cd8cb167
1 changed files with 8 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ function renderRulesets(container, rulesets, ipVersion) {
|
||||||
|
|
||||||
let tableRows = '';
|
let tableRows = '';
|
||||||
ruleset.rules.forEach(rule => {
|
ruleset.rules.forEach(rule => {
|
||||||
|
const logUrl = `/firewall/log/${ipVersion.toLowerCase()}/${ruleset.name}/${rule.rule}`;
|
||||||
|
|
||||||
tableRows += `
|
tableRows += `
|
||||||
<tr>
|
<tr>
|
||||||
<td>${rule.rule}</td>
|
<td>${rule.rule}</td>
|
||||||
|
|
@ -24,6 +26,11 @@ function renderRulesets(container, rulesets, ipVersion) {
|
||||||
<td>${rule.packets}</td>
|
<td>${rule.packets}</td>
|
||||||
<td>${rule.bytes}</td>
|
<td>${rule.bytes}</td>
|
||||||
<td style="word-break: break-all;">${rule.conditions}</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>
|
</tr>
|
||||||
`;
|
`;
|
||||||
});
|
});
|
||||||
|
|
@ -42,6 +49,7 @@ function renderRulesets(container, rulesets, ipVersion) {
|
||||||
<th>Packets</th>
|
<th>Packets</th>
|
||||||
<th>Bytes</th>
|
<th>Bytes</th>
|
||||||
<th>Conditions</th>
|
<th>Conditions</th>
|
||||||
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue