From 580bd979095170081ba34580f58d1ce10c390bf1 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Fri, 16 Feb 2024 01:07:28 +0100 Subject: [PATCH] luci-mod-status: routes: help strings to clarify column titles Signed-off-by: Paul Donald (cherry picked from commit 2abc93c6e8d9ad81881756014a151840c7c7de6e) --- .../resources/view/status/routes.js | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 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 5e8bb52566..0e91ea6736 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 @@ -173,6 +173,14 @@ return view.extend({ ip6route = data[5].stdout || '', ip6rule = data[6].stdout || ''; + var device_title = _('Which is used to access this %s').format(_('Target'); + var target_title = _('Network and its mask that define the size of the destination'); + var gateway_title = _('The address through which this %s is reachable').format(_('Target')); + var metric_title = _('Quantifies the cost or distance to a destination in a way that allows routers to make informed decisions about the optimal path to forward data packets'); + var table_title = _('Common name or numeric ID of the %s in which this route is found').format(_('Table')); + var proto_title = _('The routing protocol identifier of this route'); + var source_title = _('Network and its mask that define which source addresses use this route'); + var neigh4tbl = E('table', { 'class': 'table' }, [ E('tr', { 'class': 'tr table-titles' }, [ E('th', { 'class': 'th' }, [ _('IP address') ]), @@ -183,12 +191,12 @@ return view.extend({ var route4tbl = E('table', { 'class': 'table' }, [ E('tr', { 'class': 'tr table-titles' }, [ - E('th', { 'class': 'th' }, [ _('Network') ]), - E('th', { 'class': 'th' }, [ _('Target') ]), - E('th', { 'class': 'th' }, [ _('Gateway') ]), - E('th', { 'class': 'th' }, [ _('Metric') ]), - E('th', { 'class': 'th' }, [ _('Table') ]), - E('th', { 'class': 'th' }, [ _('Protocol') ]) + 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': metric_title }, [ _('Metric') ]), + E('th', { 'class': 'th', 'title': table_title }, [ _('Table') ]), + E('th', { 'class': 'th', 'title': proto_title }, [ _('Protocol') ]) ]) ]); @@ -209,12 +217,12 @@ return view.extend({ var route6tbl = E('table', { 'class': 'table' }, [ E('tr', { 'class': 'tr table-titles' }, [ - E('th', { 'class': 'th' }, [ _('Network') ]), - E('th', { 'class': 'th' }, [ _('Target') ]), - E('th', { 'class': 'th' }, [ _('Source') ]), - E('th', { 'class': 'th' }, [ _('Metric') ]), - E('th', { 'class': 'th' }, [ _('Table') ]), - E('th', { 'class': 'th' }, [ _('Protocol') ]) + E('th', { 'class': 'th', 'title': device_title }, [ _('Device') ]), + E('th', { 'class': 'th', 'title': target_title }, [ _('Target') ]), + 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') ]) ]) ]); -- 2.30.2