From: Mikael Magnusson Date: Sun, 15 Nov 2020 19:36:29 +0000 (+0100) Subject: luci-mod-status: routes.js: add route protocol X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F4596%2Fhead;p=project%2Fluci.git luci-mod-status: routes.js: add route protocol Add protocol column to the active routes tables. The route protocol is for example helpful when using a dynamic routing daemon, such as bird or babel. Signed-off-by: Mikael Magnusson --- 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 5da5d403b1..fa2315fb55 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 @@ -135,7 +135,8 @@ return view.extend({ dest, (v6 ? flags.from : flags.via) || '-', String(flags.metric || 0), - flags.table || 'main' + flags.table || 'main', + flags.proto, ]); } @@ -163,7 +164,8 @@ return view.extend({ E('div', { 'class': 'th' }, [ _('Target') ]), E('div', { 'class': 'th' }, [ _('IPv4-Gateway') ]), E('div', { 'class': 'th' }, [ _('Metric') ]), - E('div', { 'class': 'th' }, [ _('Table') ]) + E('div', { 'class': 'th' }, [ _('Table') ]), + E('div', { 'class': 'th' }, [ _('Protocol') ]), ]) ]); @@ -181,7 +183,8 @@ return view.extend({ E('div', { 'class': 'th' }, [ _('Target') ]), E('div', { 'class': 'th' }, [ _('Source') ]), E('div', { 'class': 'th' }, [ _('Metric') ]), - E('div', { 'class': 'th' }, [ _('Table') ]) + E('div', { 'class': 'th' }, [ _('Table') ]), + E('div', { 'class': 'th' }, [ _('Protocol') ]), ]) ]);