Merge pull request #6275 from iheinrich/luci-mod-status/add_nftables_empty_match_coun...
authorJo-Philipp Wich <jo@mein.io>
Sat, 4 Mar 2023 13:09:18 +0000 (14:09 +0100)
committerGitHub <noreply@github.com>
Sat, 4 Mar 2023 13:09:18 +0000 (14:09 +0100)
luci-mod-status: nftables add counter and comment for empty match

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;
        },