luci-mod-status: nftables add counter and comment for empty match 6275/head
authorIngo Heinrich <ingo-github@goheinrich.de>
Sat, 4 Mar 2023 11:17:50 +0000 (12:17 +0100)
committerIngo Heinrich <ingo-github@goheinrich.de>
Sat, 4 Mar 2023 11:17:50 +0000 (12:17 +0100)
Signed-off-by: Ingo Heinrich <ingo-github@goheinrich.de>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js

index d5faedc4dc55c673969c92e4df8667a9287d0d4b..d891526d04eabb68ed68b834ee9a66a0d3274c29 100644 (file)
@@ -515,7 +515,7 @@ return view.extend({
                }
 
                if (empty)
-                       dom.content(row.childNodes[0], E('em', [ _('Any packet', 'nft match any traffic') ]));
+                       dom.append(row.childNodes[0], E('span', { 'class': 'ifacebadge' }, '<em>%h</em>'.format(_('Any packet', 'nft match any traffic'))));
 
                return row;
        },