Merge pull request #4596 from mikma/routes-proto
authorJo-Philipp Wich <jo@mein.io>
Wed, 18 Nov 2020 16:11:30 +0000 (17:11 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Nov 2020 16:11:30 +0000 (17:11 +0100)
luci-mod-status: routes.js: add route protocol

modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js

index 5da5d403b162459040cea7a3a6f011416d6d148d..fa2315fb5500026d453cab7c9686a1ee04fe4d8c 100644 (file)
@@ -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') ]),
                        ])
                ]);