diff options
author | Stan Grishin <stangri@melmac.ca> | 2023-04-30 11:38:53 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-30 11:38:53 -0600 |
commit | 9628bd504ceaaa598d2f3becddbbc804e6a08aae (patch) | |
tree | d44ab3b7f74ad16e9a9af72c0b2cc1a1604d4e3f /applications/luci-app-advanced-reboot/htdocs/luci-static | |
parent | 2a9c3a3173e0cec686fb8d9fafb8c063f80958e4 (diff) | |
parent | 134975793191673bbe6ea8cfb0392eadec96aa9e (diff) |
Merge pull request #6362 from stangri/master-luci-app-advanced-reboot
luci-app-advanced-reboot: add support for Linksys and Xiaomi devices …
Diffstat (limited to 'applications/luci-app-advanced-reboot/htdocs/luci-static')
-rw-r--r-- | applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js b/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js index 482b8e2e91..3fdf6c18ec 100644 --- a/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js +++ b/applications/luci-app-advanced-reboot/htdocs/luci-static/resources/view/system/advanced_reboot.js @@ -5,6 +5,11 @@ 'require uci'; 'require fs'; +var pkg = { + get Name() { return 'luci-app-advanced-reboot'; }, + get URL() { return 'https://docs.openwrt.melmac.net/' + pkg.Name + '/'; } +}; + return view.extend({ translateTable: { NO_BOARD_NAME : function(args) { return _('Unable to find Device Board Name.')}, @@ -213,9 +218,13 @@ return view.extend({ body.appendChild(partitions_table); } else { body.appendChild(E('p', { 'class' : 'alert-message warning'}, - device_info.rom_board_name ? _("Warning: Device (%s) is unknown or isn't a dual-partition device!").format(device_info.rom_board_name) + device_info.rom_board_name ? _("Warning: Device (%s) is unknown or isn't a dual-firmware device!" + "%s" + + "If you are seeing this on an OpenWrt dual-firmware supported device," + "%s" + "please refer to " + + "%sHow to add a new device section of the README%s.").format(device_info.rom_board_name, "<br /><br />", "<br />", + "<a href=\"" + pkg.URL + "#how-to-add-a-new-device\" target=\"_blank\">", "</a>" ) : _('Warning: Unable to obtain device information!') )); + } body.appendChild(E('hr')); |