From 1a530635c930a7a23b6ff941c89365dd5e692198 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 21 Nov 2012 18:36:40 +0000 Subject: [PATCH] themes: add facility to include custom css --- themes/bootstrap/luasrc/view/themes/bootstrap/header.htm | 4 ++++ .../freifunk-bno/luasrc/view/themes/freifunk-bno/header.htm | 4 ++++ .../luasrc/view/themes/freifunk-generic/header.htm | 4 ++++ themes/openwrt/luasrc/view/themes/openwrt.org/header.htm | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm index 1d23877664..c79c152ba9 100644 --- a/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm +++ b/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm @@ -106,6 +106,10 @@ You may obtain a copy of the License at <% if node and node.css then %> <% end -%> + <% if css then %> + <% end -%> diff --git a/themes/freifunk-bno/luasrc/view/themes/freifunk-bno/header.htm b/themes/freifunk-bno/luasrc/view/themes/freifunk-bno/header.htm index 7313fff550..be03d87b52 100644 --- a/themes/freifunk-bno/luasrc/view/themes/freifunk-bno/header.htm +++ b/themes/freifunk-bno/luasrc/view/themes/freifunk-bno/header.htm @@ -41,6 +41,10 @@ require("luci.http").prepare_content("text/html") <% if node and node.css then %><% end %> + <% if css then %> + <% end -%> diff --git a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm index c14d8be0e7..a8c257e405 100644 --- a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm +++ b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm @@ -79,6 +79,10 @@ You may obtain a copy of the License at <% if node and node.css then %> <% end -%> +<% if css then %> +<% end -%> <%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(tostring(node.title)) or '')) %> - LuCI diff --git a/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm index 9f85959763..5006723e6a 100644 --- a/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm @@ -107,6 +107,10 @@ $Id$ <% if node and node.css then %> <% end -%> +<% if css then %> +<% end -%> <%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI -- 2.30.2