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 = '';
|
||||
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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue