Skip to content

Commit

Permalink
luci-mod-status: routes: help strings to clarify column titles
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Donald <newtwen@gmail.com>
  • Loading branch information
systemcrash committed Feb 17, 2024
1 parent d9e7be1 commit c657b85
Showing 1 changed file with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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') ]),
Expand All @@ -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') ])
])
]);

Expand All @@ -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') ])
])
]);

Expand Down

0 comments on commit c657b85

Please sign in to comment.