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 6f09bfc..78b98e0 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 %>