themes/freifunk-generic: Add warning box when js is disabled
authorManuel Munz <freifunk@somakoma.de>
Mon, 6 Dec 2010 00:30:03 +0000 (00:30 +0000)
committerManuel Munz <freifunk@somakoma.de>
Mon, 6 Dec 2010 00:30:03 +0000 (00:30 +0000)
themes/freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css
themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm

index 4530b08..d20d74f 100644 (file)
@@ -81,6 +81,12 @@ code {
        background-color: white;
 }
 
        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;
 #header {
        min-height: 100px;
        background: #FFF url(header.jpg) repeat-x left bottom;
index c6375ad..a6d82d9 100644 (file)
@@ -185,3 +185,10 @@ if tree.nodes[category] and tree.nodes[category].ucidata then
 <div class="clear"></div>
 </div>
 <div id="maincontent">
 <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>
+