summaryrefslogtreecommitdiffhomepage
path: root/themes/freifunk-generic
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2010-12-06 00:30:03 +0000
committerManuel Munz <freifunk@somakoma.de>2010-12-06 00:30:03 +0000
commit617aa2f91cbec692fc3f74566677b7b265f1f8f8 (patch)
tree84a6ebed07e85c11d836097375fb2b24c6e33e50 /themes/freifunk-generic
parent7996c4f92cc5d538277e21626a2f984561fe04a9 (diff)
themes/freifunk-generic: Add warning box when js is disabled
Diffstat (limited to 'themes/freifunk-generic')
-rw-r--r--themes/freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css6
-rw-r--r--themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm7
2 files changed, 13 insertions, 0 deletions
diff --git a/themes/freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css b/themes/freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css
index 4530b0876..d20d74f02 100644
--- a/themes/freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css
+++ b/themes/freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css
@@ -81,6 +81,12 @@ code {
background-color: white;
}
+.errorbox {
+border: 1px solid #F00;
+background-color: #FCC;
+padding: 5px;
+}
+
#header {
min-height: 100px;
background: #FFF url(header.jpg) repeat-x left bottom;
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 c6375ad45..a6d82d906 100644
--- a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
+++ b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
@@ -185,3 +185,10 @@ if tree.nodes[category] and tree.nodes[category].ucidata then
<div class="clear"></div>
</div>
<div id="maincontent">
+<noscript>
+ <div class="errorbox">
+ <strong><%:Java Script required!%></strong><br />
+ <%:You must enable Java Script in your browser or LuCI will not work properly.%>
+ </div>
+</noscript>
+