summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-11-21 18:36:40 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-11-21 18:36:40 +0000
commit1a530635c930a7a23b6ff941c89365dd5e692198 (patch)
tree3cf2d5c89db828242e711ded71075b178202fb1d
parent9d2e1cf0127bf67eb207b581eb4de0668a71f5d1 (diff)
themes: add facility to include custom css
-rw-r--r--themes/bootstrap/luasrc/view/themes/bootstrap/header.htm4
-rw-r--r--themes/freifunk-bno/luasrc/view/themes/freifunk-bno/header.htm4
-rw-r--r--themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm4
-rw-r--r--themes/openwrt/luasrc/view/themes/openwrt.org/header.htm4
4 files changed, 16 insertions, 0 deletions
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
<link rel="shortcut icon" href="<%=media%>/favicon.ico">
<% if node and node.css then %><link rel="stylesheet" href="<%=resource%>/<%=node.css%>">
<% end -%>
+ <% if css then %><style title="text/css">
+ <%-= css %>
+ </style>
+ <% end -%>
<script src="<%=resource%>/xhr.js"></script>
</head>
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")
<head>
<link rel="stylesheet" type="text/css" href="<%=media%>/cascade.css" />
<% if node and node.css then %><link rel="stylesheet" type="text/css" href="<%=resource%>/<%=node.css%>" /><% end %>
+ <% if css then %><style title="text/css">
+ <%-= css %>
+ </style>
+ <% end -%>
<link rel="shortcut icon" href="<%=media%>/images/favicon.ico" />
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" />
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 IE 7]><link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/ie7.css" /><![endif]-->
<% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" />
<% end -%>
+<% if css then %><style title="text/css">
+<%= css %>
+</style>
+<% end -%>
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(tostring(node.title)) or '')) %> - LuCI</title>
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 IE 8]><link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/ie8.css" /><![endif]-->
<% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" />
<% end -%>
+<% if css then %><style title="text/css">
+<%= css %>
+</style>
+<% end -%>
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
</head>