summaryrefslogtreecommitdiffhomepage
path: root/themes/fledermaus/luasrc/view
diff options
context:
space:
mode:
Diffstat (limited to 'themes/fledermaus/luasrc/view')
-rw-r--r--themes/fledermaus/luasrc/view/themes/fledermaus/header.htm17
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
index 4573eedcd..cd48bd722 100644
--- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
+++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
@@ -43,6 +43,7 @@ require("luci.http").prepare_content("text/html")
<% if node and node.css then %><link rel="stylesheet" type="text/css" href="<%=resource%>/<%=node.css%>" /><% end %>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" />
+ <script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI</title>
<!--[if lt IE 7]>
@@ -63,6 +64,14 @@ require("luci.http").prepare_content("text/html")
<![endif]-->
</head>
<body onload="window.setup_hover && setup_hover()">
+
+<%- if luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
+ <div class="warning">
+ <strong><%:No password set!%></strong><br />
+ <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%>
+ </div>
+<%- end -%>
+
<div id="header"><div id="header2">
<span id="header3">freifunk kamikaze</span><br />
<span id="header4">now with even more bats and stuff</span>
@@ -178,3 +187,11 @@ end
<br class="clear" />
</div>
<div id="maincontent">
+<% if category ~= "freifunk" and category ~= "splash" then %>
+ <noscript>
+ <div class="warning">
+ <strong><%:Java Script required!%></strong><br />
+ <%:You must enable Java Script in your browser or LuCI will not work properly.%>
+ </div>
+ </noscript>
+<% end %>