luci-theme-openwrt-2020: honor CSS definitions passed by views
authorJo-Philipp Wich <jo@mein.io>
Fri, 9 Apr 2021 12:25:51 +0000 (14:25 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 9 Apr 2021 12:29:12 +0000 (14:29 +0200)
commitc5ff3244e92f267e3b7410b3196615f5fec75051
treeb71e334baacca8dc8bfec653f4f99403ddda4822
parent2155868175fdf1de273cafc0b37b1b9fd5900b04
luci-theme-openwrt-2020: honor CSS definitions passed by views

Legacy Lua views might declare a global `css` variable to inject custom
styles into the template header. Support this mechanism in the OpenWrt 2020
theme as well.

Ref: https://github.com/openwrt/luci/issues/4972
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm