luci-theme-openwrt: rework menu rendering
authorJo-Philipp Wich <jo@mein.io>
Wed, 15 Apr 2020 20:43:05 +0000 (22:43 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:50 +0000 (19:40 +0200)
commit94f504f17864fcdf3447fe40160c59a3e93bbbdf
tree3bdc7c797baa36a02b1343754b4559b4d846516f
parentcde76b0295bf128fa1117a1a30f0eaa9551fa186
luci-theme-openwrt: 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 48269ade6163c34f348632bf225e2c6649b0a9c1)
themes/luci-theme-openwrt/htdocs/luci-static/resources/menu-openwrt.js [new file with mode: 0644]
themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/footer.htm
themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm