luci-theme-boostrap: add JavaScript warning if disabled 1034/head
authorFlorian Eckert <Eckert.Florian@googlemail.com>
Tue, 21 Feb 2017 14:16:49 +0000 (15:16 +0100)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Wed, 22 Feb 2017 09:13:17 +0000 (10:13 +0100)
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm

index 6f09bfcdfa1042a8ae1dce2954fc7443b9ab4da9..78b98e0355ebc53b1d1510855dd4b96b9634cd1e 100644 (file)
                        </div>
                <%- end -%>
 
+               <noscript>
+                       <div class="alert-message warning">
+                               <strong><%:JavaScript required!%></strong><br />
+                               <%:You must enable JavaScript in your browser or LuCI will not work properly.%>
+                       </div>
+               </noscript>
+
                <div id="maincontent" class="container">
                        <% if category then render_tabmenu(category, cattree) end %>