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:31:06 +0000 (14:31 +0200)
commit6137c9ff332e8cee4f72485b1e7bbcd20c53dec6
tree83943d95e7bac8aa7f6903a1b90cd179b122cc28
parent7bb2fc4913e16fc515209343fdf6e2e68f9d1809
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>
(cherry picked from commit c5ff3244e92f267e3b7410b3196615f5fec75051)
themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm