luci-mod-status: nftables add counter and comment for empty match

Signed-off-by: Ingo Heinrich <ingo-github@goheinrich.de>
This commit is contained in:
Ingo Heinrich 2023-03-04 12:17:50 +01:00
parent 3129c0b369
commit 8c7c56f4e4

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