luci-theme-material: do not infer login state from url (#520)
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 22 Oct 2015 19:07:40 +0000 (21:07 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 22 Oct 2015 19:08:22 +0000 (21:08 +0200)
commitf9e590aa4741bf337029be3f374a33543cc3f37b
treee555ea583b6f88262b728dc4c30b7ae43ec98071
parent6c4341ee012b1c946f63a39d5b9a4e5b0abc1f75
luci-theme-material: do not infer login state from url (#520)

Checking for `;` in the url is no good indicator whether a user is logged in,
instead query the dispatcher and set a `logged-in` CSS class on the `<body>`
element if a session exists.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
themes/luci-theme-material/htdocs/luci-static/material/js/script.js
themes/luci-theme-material/luasrc/view/themes/material/header.htm