luci-theme-boostrap: add JavaScript warning if disabled
[project/luci.git] / themes / luci-theme-bootstrap / luasrc / view / themes / bootstrap / header.htm
index d4d0a2b..78b98e0 100644 (file)
                        <style title="text/css"><%= css %></style>
                <% end -%>
                <script src="<%=resource%>/xhr.js"></script>
-               <script src="<%=resource%>/jql.min.js"></script>
        </head>
 
        <body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %>">
                        </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 %>