summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-11-15 20:36:29 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2020-11-15 20:56:30 +0100
commit4799fcead6336fa158b79317f7c7f92180d98f9d (patch)
tree9fc6f2f4e53e7ec43eb2a1d0f4bd63acafe380ca /modules
parent24a240d233335bee89d44f76cb968e3889e2d9f7 (diff)
luci-mod-status: routes.js: add route protocolroutes-proto
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 <mikma@users.sourceforge.net>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js9
1 files changed, 6 insertions, 3 deletions
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 5da5d403b..fa2315fb5 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') ]),
])
]);