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 4530b087640258dc037cad77083d2a30f8ff10c0..d20d74f0246b01e02543d02d675150fa4d79361d 100644 (file)
@@ -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;
index c6375ad45f6bb6e8afbf32fd3a71f851fcf33287..a6d82d9060097cc935106c8588fb46f0d745a125 100644 (file)
@@ -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>
+