summaryrefslogtreecommitdiffhomepage
path: root/themes/freifunk-generic/luasrc
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 /themes/freifunk-generic/luasrc
parent9d2e1cf0127bf67eb207b581eb4de0668a71f5d1 (diff)
themes: add facility to include custom css
Diffstat (limited to 'themes/freifunk-generic/luasrc')
-rw-r--r--themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm4
1 files changed, 4 insertions, 0 deletions
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>