summaryrefslogtreecommitdiffhomepage
path: root/themes/freifunk-hannover/luasrc
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-04-13 19:29:30 +0000
committerManuel Munz <freifunk@somakoma.de>2011-04-13 19:29:30 +0000
commit3a12f82014cbac58080ef19673e0ff86fcae1112 (patch)
treeabb730d612b2f156793b1c7e841b1c7c8dc8b91b /themes/freifunk-hannover/luasrc
parent0c281f4e8618d70b8fd8abb25d0fe5a9acac769f (diff)
themes: Update fledermaus, freifunk-bno, freifunk-hannover and freifunk
Diffstat (limited to 'themes/freifunk-hannover/luasrc')
-rw-r--r--themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm18
1 files changed, 18 insertions, 0 deletions
diff --git a/themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm b/themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm
index e6f0eb443f..d594a6535d 100644
--- a/themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm
+++ b/themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm
@@ -49,10 +49,20 @@ require("luci.http").prepare_content("application/xhtml+xml")
<script type="text/javascript" src="<%=resource%>/VarType.js"></script>
<script type="text/javascript" src="<%=resource%>/XHTML1.js"></script>
<script type="text/javascript" src="<%=resource%>/Dropdowns.js"></script>
+<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
+
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI</title>
</head>
<body class="lang_<%=luci.i18n.context.lang%>">
+
+<%- 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 -%>
+
<p class="skiplink">
<span id="skiplink1"><a href="#navigation"><%:Skip to navigation%></a></span>
<span id="skiplink2"><a href="#content"><%:Skip to content%></a></span>
@@ -161,3 +171,11 @@ else -%>
<div class="clear"></div>
</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 %>