summaryrefslogtreecommitdiffhomepage
path: root/themes/freifunk/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/luasrc
parent0c281f4e8618d70b8fd8abb25d0fe5a9acac769f (diff)
themes: Update fledermaus, freifunk-bno, freifunk-hannover and freifunk
Diffstat (limited to 'themes/freifunk/luasrc')
-rw-r--r--themes/freifunk/luasrc/view/themes/freifunk/header.htm17
1 files changed, 15 insertions, 2 deletions
diff --git a/themes/freifunk/luasrc/view/themes/freifunk/header.htm b/themes/freifunk/luasrc/view/themes/freifunk/header.htm
index f2d9285bc..845c4af83 100644
--- a/themes/freifunk/luasrc/view/themes/freifunk/header.htm
+++ b/themes/freifunk/luasrc/view/themes/freifunk/header.htm
@@ -9,8 +9,6 @@ You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
-$Id$
-
-%>
<%
require("luci.sys")
@@ -44,6 +42,7 @@ require("luci.http").prepare_content("text/html")
<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" />
+ <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]>
@@ -68,6 +67,12 @@ require("luci.http").prepare_content("text/html")
<center>
<div id="wrapper">
+<%- 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="main">
@@ -194,3 +199,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%>