diff options
author | Vladislav Grigoryev <vg.aetera@gmail.com> | 2021-08-14 20:06:55 +0300 |
---|---|---|
committer | Vladislav Grigoryev <vg.aetera@gmail.com> | 2021-09-01 13:05:59 +0300 |
commit | c71dc1cccfd1b54b6aee2d7e459a517cb23de5ae (patch) | |
tree | 0398bd6c87449e8dd72cc134621f9df836c4eeb9 /modules/luci-mod-status/htdocs/luci-static/resources/view | |
parent | 9b68c7318e4c15d124378f6e0861b534f17963f5 (diff) |
luci-mod-status: optimize view/formatting for status/routing
Optimize view and formatting for the status/routing page.
Remove redundant style and header abbreviations.
Consolidate terminology for IPv4 and IPv6 categories.
Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js | 24 |
1 files changed, 8 insertions, 16 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 91adae2434..27a5bdf90d 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 @@ -175,7 +175,7 @@ return view.extend({ var neigh4tbl = E('table', { 'class': 'table' }, [ E('tr', { 'class': 'tr table-titles' }, [ - E('th', { 'class': 'th' }, [ _('IPv4 address') ]), + E('th', { 'class': 'th' }, [ _('IP address') ]), E('th', { 'class': 'th' }, [ _('MAC address') ]), E('th', { 'class': 'th' }, [ _('Interface') ]) ]) @@ -185,7 +185,7 @@ return view.extend({ E('tr', { 'class': 'tr table-titles' }, [ E('th', { 'class': 'th' }, [ _('Network') ]), E('th', { 'class': 'th' }, [ _('Target') ]), - E('th', { 'class': 'th' }, [ _('IPv4 gateway') ]), + E('th', { 'class': 'th' }, [ _('Gateway') ]), E('th', { 'class': 'th' }, [ _('Metric') ]), E('th', { 'class': 'th' }, [ _('Table') ]), E('th', { 'class': 'th' }, [ _('Protocol') ]) @@ -201,7 +201,7 @@ return view.extend({ var neigh6tbl = E('table', { 'class': 'table' }, [ E('tr', { 'class': 'tr table-titles' }, [ - E('th', { 'class': 'th' }, [ _('IPv6 address') ]), + E('th', { 'class': 'th' }, [ _('IP address') ]), E('th', { 'class': 'th' }, [ _('MAC address') ]), E('th', { 'class': 'th' }, [ _('Interface') ]) ]) @@ -233,35 +233,27 @@ return view.extend({ cbi_update_table(rule6tbl, this.parseRule(ip6rule, networks, false)); var view = E([], [ - E('style', { 'type': 'text/css' }, [ - '.cbi-tooltip-container, span.jump { border-bottom:1px dotted #00f;cursor:pointer }', - 'ul { list-style:none }', - '.references { position:relative }', - '.references .cbi-tooltip { left:0!important;top:1.5em!important }', - 'h4>span { font-size:90% }' - ]), - E('h2', {}, [ _('Routing') ]), E('p', {}, [ _('The following rules are currently active on this system.') ]), E('div', {}, [ E('div', { 'data-tab': 'ipv4routing', 'data-tab-title': _('IPv4 Routing') }, [ - E('h3', {}, [ _('ARP') ]), + E('h3', {}, [ _('IPv4 Neighbours') ]), neigh4tbl, - E('h3', {}, _('Active <abbr title="Internet Protocol Version 4">IPv4</abbr>-Routes')), + E('h3', {}, [ _('Active IPv4 Routes') ]), route4tbl, - E('h3', {}, _('Active <abbr title="Internet Protocol Version 4">IPv4</abbr>-Rules')), + E('h3', {}, [ _('Active IPv4 Rules') ]), rule4tbl ]), E('div', { 'data-tab': 'ipv6routing', 'data-tab-title': _('IPv6 Routing') }, [ E('h3', {}, [ _('IPv6 Neighbours') ]), neigh6tbl, - E('h3', {}, _('Active <abbr title="Internet Protocol Version 6">IPv6</abbr>-Routes')), + E('h3', {}, [ _('Active IPv6 Routes') ]), route6tbl, - E('h3', {}, _('Active <abbr title="Internet Protocol Version 6">IPv6</abbr>-Rules')), + E('h3', {}, [ _('Active IPv6 Rules') ]), rule6tbl ]) ]) |