From dc0bdc9ff74e77b33f65c4f84a1cd9db77575f1e Mon Sep 17 00:00:00 2001 From: Andy Chiang Date: Fri, 10 Oct 2025 16:58:19 +0700 Subject: [PATCH] luci-mod-status: add source/gateway display for ipv4/ipv6 *add source display for ipv4 *add gateway display for ipv6 Signed-off-by: Andy Chiang --- .../htdocs/luci-static/resources/view/status/routes.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js index f5328d96d8..59ce7b7cd9 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js @@ -163,7 +163,8 @@ return view.extend({ res.push([ E('span', { 'class': 'ifacebadge' }, [ net ? net : '(%s)'.format(flags.dev) ]), dest, - (v6 ? flags.from : flags.via) || '-', + flags.via || '-', + flags.src || flags.from || '-', String(flags.metric || 0), flags.table || 'main', flags.proto, @@ -222,6 +223,7 @@ return view.extend({ E('th', { 'class': 'th', 'title': device_title }, [ _('Device') ]), E('th', { 'class': 'th', 'title': target_title }, [ _('Target') ]), E('th', { 'class': 'th', 'title': gateway_title }, [ _('Gateway') ]), + E('th', { 'class': 'th', 'title': source_title }, [ _('Source') ]), E('th', { 'class': 'th', 'title': metric_title }, [ _('Metric') ]), E('th', { 'class': 'th', 'title': table_title }, [ _('Table') ]), E('th', { 'class': 'th', 'title': proto_title }, [ _('Protocol') ]) @@ -247,6 +249,7 @@ return view.extend({ E('tr', { 'class': 'tr table-titles' }, [ E('th', { 'class': 'th', 'title': device_title }, [ _('Device') ]), E('th', { 'class': 'th', 'title': target_title }, [ _('Target') ]), + E('th', { 'class': 'th', 'title': gateway_title }, [ _('Gateway') ]), E('th', { 'class': 'th', 'title': source_title }, [ _('Source') ]), E('th', { 'class': 'th', 'title': metric_title }, [ _('Metric') ]), E('th', { 'class': 'th', 'title': table_title }, [ _('Table') ]), -- 2.30.2