From c0de036b3162d73e9fad878afaa32e7ca0df1fed Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 7 Jul 2018 15:12:47 +0200 Subject: [PATCH] treewide: always include cbi.js Include cbi.js in the main header template like it is done for xhr.js and remove the page specific includes. Signed-off-by: Jo-Philipp Wich --- .../luci-app-adblock/luasrc/view/adblock/query.htm | 1 - .../luasrc/view/asterisk/dialplans.htm | 1 - .../luasrc/view/asterisk/dialzones.htm | 1 - .../luci-app-commands/luasrc/view/commands.htm | 1 - applications/luci-app-cshark/luasrc/view/cshark.htm | 1 - .../luasrc/view/freifunk/diagnostics.htm | 1 - applications/luci-app-lxc/luasrc/view/lxc.htm | 1 - .../luci-app-mwan3/luasrc/view/mwan/status_detail.htm | 1 - .../luasrc/view/mwan/status_diagnostics.htm | 1 - .../luasrc/view/mwan/status_interface.htm | 1 - .../luasrc/view/mwan/status_troubleshooting.htm | 1 - .../luci-app-nlbwmon/luasrc/view/nlbw/backup.htm | 1 - .../luci-app-nlbwmon/luasrc/view/nlbw/display.htm | 1 - .../luasrc/view/freifunk-services/services.htm | 1 - .../luci-app-olsr/luasrc/view/status-olsr/hna.htm | 1 - .../luasrc/view/status-olsr/neighbors.htm | 1 - .../luasrc/view/status-olsr/overview.htm | 1 - .../luci-app-olsr/luasrc/view/status-olsr/routes.htm | 1 - .../luci-app-olsr/luasrc/view/status-olsr/smartgw.htm | 1 - .../luasrc/view/admin_status/splash.htm | 1 - .../luasrc/view/travelmate/stations.htm | 1 - .../luasrc/view/travelmate/wifi_scan.htm | 1 - .../luci-app-wireguard/luasrc/view/wireguard.htm | 1 - modules/luci-base/luasrc/view/cbi/apply_widget.htm | 1 - modules/luci-base/luasrc/view/cbi/header.htm | 1 - modules/luci-base/luasrc/view/cbi/simpleform.htm | 1 - .../luasrc/view/admin_network/diagnostics.htm | 1 - .../luasrc/view/admin_network/iface_overview.htm | 1 - .../luasrc/view/admin_network/wifi_overview.htm | 1 - .../luasrc/view/admin_status/bandwidth.htm | 1 - .../luasrc/view/admin_status/connections.htm | 1 - .../luasrc/view/admin_status/index.htm | 1 - .../luasrc/view/admin_status/iptables.htm | 1 - .../luasrc/view/admin_status/load.htm | 1 - .../luasrc/view/admin_status/routes.htm | 1 - .../luasrc/view/admin_status/wireless.htm | 1 - .../luasrc/view/admin_system/packages.htm | 1 - .../luasrc/view/freifunk/public_status.htm | 1 - .../luasrc/view/themes/bootstrap/header.htm | 1 + .../luasrc/view/themes/freifunk-generic/header.htm | 1 + .../luasrc/view/themes/material/header.htm | 1 + .../luasrc/view/themes/openwrt.org/header.htm | 11 ++++++++--- 42 files changed, 11 insertions(+), 41 deletions(-) diff --git a/applications/luci-app-adblock/luasrc/view/adblock/query.htm b/applications/luci-app-adblock/luasrc/view/adblock/query.htm index 8bbed3a53e..72dc16b1d8 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/query.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/query.htm @@ -5,7 +5,6 @@ This is free software, licensed under the Apache License, Version 2.0 <%+header%> - diff --git a/applications/luci-app-asterisk/luasrc/view/asterisk/dialzones.htm b/applications/luci-app-asterisk/luasrc/view/asterisk/dialzones.htm index e48da608a6..66a06b20f7 100644 --- a/applications/luci-app-asterisk/luasrc/view/asterisk/dialzones.htm +++ b/applications/luci-app-asterisk/luasrc/view/asterisk/dialzones.htm @@ -49,7 +49,6 @@
-
diff --git a/applications/luci-app-commands/luasrc/view/commands.htm b/applications/luci-app-commands/luasrc/view/commands.htm index 4285f25cb2..d60a97c5b7 100644 --- a/applications/luci-app-commands/luasrc/view/commands.htm +++ b/applications/luci-app-commands/luasrc/view/commands.htm @@ -34,7 +34,6 @@ <%+header%> -
<%+mwan/overview_status_interface%> diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm index f60e0da0aa..a20516bd2a 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm @@ -13,7 +13,6 @@
  • "><%:Troubleshooting%>
  • -

    <%:Netlink Bandwidth Monitor - Backup / Restore %>

    diff --git a/applications/luci-app-nlbwmon/luasrc/view/nlbw/display.htm b/applications/luci-app-nlbwmon/luasrc/view/nlbw/display.htm index 932c8849a7..616bcc52a1 100644 --- a/applications/luci-app-nlbwmon/luasrc/view/nlbw/display.htm +++ b/applications/luci-app-nlbwmon/luasrc/view/nlbw/display.htm @@ -195,7 +195,6 @@ <%+header%> -
    diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm index 57efd97376..8a417d69c2 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/wifi_scan.htm @@ -39,7 +39,6 @@ This is free software, licensed under the Apache License, Version 2.0 <%+header%> -

    <%:Wireless Scan%>

    diff --git a/applications/luci-app-wireguard/luasrc/view/wireguard.htm b/applications/luci-app-wireguard/luasrc/view/wireguard.htm index 64d9955296..cd08e9ed51 100644 --- a/applications/luci-app-wireguard/luasrc/view/wireguard.htm +++ b/applications/luci-app-wireguard/luasrc/view/wireguard.htm @@ -52,7 +52,6 @@ <%+header%> -
    diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm index 5607e59dfb..d9217894fd 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm @@ -15,7 +15,6 @@ local ping_host = luci.config.diag and luci.config.diag.ping or "dev.openwrt.org local route_host = luci.config.diag and luci.config.diag.route or "dev.openwrt.org" %> - <% end -%> + diff --git a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm index b6ed1f7134..4a1c7b6440 100644 --- a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm +++ b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm @@ -81,6 +81,7 @@ <% end -%> + <%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(tostring(node.title)) or '')) %> - LuCI diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm index b6341a2c35..f97db25751 100644 --- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm +++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm @@ -211,6 +211,7 @@ <% if css then %> <% end -%> + diff --git a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm index 773cf1f82e..e77f9a4bfe 100644 --- a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm @@ -87,6 +87,9 @@ local childs = disp.node_childs(node) if #childs > 0 then if level > 2 then + if level == 3 then + write('
    ') + end write('
      ') end @@ -112,6 +115,9 @@ if level > 2 then write('
    ') + if level == 3 then + write('
    ') + end end if selected_node then @@ -157,6 +163,7 @@ <%= css %> <% end -%> +