From: Jo-Philipp Wich Date: Wed, 21 Nov 2012 18:36:40 +0000 (+0000) Subject: themes: add facility to include custom css X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=1a530635c930a7a23b6ff941c89365dd5e692198 themes: add facility to include custom css --- diff --git a/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm index 1d2387766..c79c152ba 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 7313fff55..be03d87b5 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 c14d8be0e..a8c257e40 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 9f8595976..5006723e6 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