luci-theme-bootstrap: rework menu rendering
authorJo-Philipp Wich <jo@mein.io>
Wed, 15 Apr 2020 20:46:25 +0000 (22:46 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:50 +0000 (19:40 +0200)
commiteca8dee353ed9bbe4c2087a884397c2354d70fb3
tree3b5ee778bb02c07b60953b4b0c289e51d9125181
parent94f504f17864fcdf3447fe40160c59a3e93bbbdf
luci-theme-bootstrap: rework menu rendering

Utilize the LuCI.ui.menu class to load, traverse and cache the menu tree
in the local session store.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
[only render menu when logged in for 19.07]
(backported from commit 1ac8df2614336b34109375e62f201cf6bac46734)
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css
themes/luci-theme-bootstrap/htdocs/luci-static/resources/menu-bootstrap.js [new file with mode: 0644]
themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm
themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/json-menu.htm [deleted file]