mirror of
https://github.com/openwrt/luci
synced 2025-01-09 12:37:57 +08:00
luci-mod-status: NOTRACK action for nftables rule rendering
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
parent
98662b0834
commit
63b7e637c9
@ -93,6 +93,7 @@ var op_translations = {
|
|||||||
|
|
||||||
var action_translations = {
|
var action_translations = {
|
||||||
'accept': _('Accept packet', 'nft accept action'),
|
'accept': _('Accept packet', 'nft accept action'),
|
||||||
|
'notrack': _('Do not track', 'nft notrack action'),
|
||||||
'drop': _('Drop packet', 'nft drop action'),
|
'drop': _('Drop packet', 'nft drop action'),
|
||||||
'jump': _('Continue in <strong><a href="#%q.%q">%h</a></strong>', 'nft jump action'),
|
'jump': _('Continue in <strong><a href="#%q.%q">%h</a></strong>', 'nft jump action'),
|
||||||
'log': _('Log event "<strong>%h</strong>…"', 'nft log action'),
|
'log': _('Log event "<strong>%h</strong>…"', 'nft log action'),
|
||||||
@ -145,6 +146,7 @@ return view.extend({
|
|||||||
if (expr.hasOwnProperty(k)) {
|
if (expr.hasOwnProperty(k)) {
|
||||||
switch (k) {
|
switch (k) {
|
||||||
case 'accept':
|
case 'accept':
|
||||||
|
case 'notrack':
|
||||||
case 'reject':
|
case 'reject':
|
||||||
case 'drop':
|
case 'drop':
|
||||||
case 'jump':
|
case 'jump':
|
||||||
@ -361,6 +363,7 @@ return view.extend({
|
|||||||
}, (action_translations[k] || k).format(this.exprToString(spec.expr)));
|
}, (action_translations[k] || k).format(this.exprToString(spec.expr)));
|
||||||
|
|
||||||
case 'accept':
|
case 'accept':
|
||||||
|
case 'notrack':
|
||||||
case 'drop':
|
case 'drop':
|
||||||
return E('span', {
|
return E('span', {
|
||||||
'class': 'ifacebadge'
|
'class': 'ifacebadge'
|
||||||
|
Loading…
Reference in New Issue
Block a user