themes: add facility to include custom css
This commit is contained in:
parent
9d2e1cf012
commit
1a530635c9
4 changed files with 16 additions and 0 deletions
|
@ -106,6 +106,10 @@ You may obtain a copy of the License at
|
||||||
<link rel="shortcut icon" href="<%=media%>/favicon.ico">
|
<link rel="shortcut icon" href="<%=media%>/favicon.ico">
|
||||||
<% if node and node.css then %><link rel="stylesheet" href="<%=resource%>/<%=node.css%>">
|
<% if node and node.css then %><link rel="stylesheet" href="<%=resource%>/<%=node.css%>">
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
<% if css then %><style title="text/css">
|
||||||
|
<%-= css %>
|
||||||
|
</style>
|
||||||
|
<% end -%>
|
||||||
<script src="<%=resource%>/xhr.js"></script>
|
<script src="<%=resource%>/xhr.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,10 @@ require("luci.http").prepare_content("text/html")
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" type="text/css" href="<%=media%>/cascade.css" />
|
<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 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" />
|
<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-type" content="application/xhtml+xml; charset=utf-8" />
|
||||||
<meta http-equiv="content-script-type" content="text/javascript" />
|
<meta http-equiv="content-script-type" content="text/javascript" />
|
||||||
|
|
|
@ -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 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%>" />
|
<% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" />
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
<% if css then %><style title="text/css">
|
||||||
|
<%= css %>
|
||||||
|
</style>
|
||||||
|
<% end -%>
|
||||||
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
|
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
|
||||||
|
|
||||||
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(tostring(node.title)) or '')) %> - LuCI</title>
|
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(tostring(node.title)) or '')) %> - LuCI</title>
|
||||||
|
|
|
@ -107,6 +107,10 @@ $Id$
|
||||||
<!--[if IE 8]><link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/ie8.css" /><![endif]-->
|
<!--[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%>" />
|
<% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" />
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
<% if css then %><style title="text/css">
|
||||||
|
<%= css %>
|
||||||
|
</style>
|
||||||
|
<% end -%>
|
||||||
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
|
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
|
||||||
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
|
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue