luci-theme-material: fix whitspaces and change mode

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2018-09-25 11:37:39 +02:00
parent 136fba752c
commit 6f33e73e29

View file

@ -1,21 +1,21 @@
<%# <%#
Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI
luci-theme-material luci-theme-material
Copyright 2015 Lutty Yang <lutty@wcan.in> Copyright 2015 Lutty Yang <lutty@wcan.in>
Have a bug? Please create an issue here on GitHub! Have a bug? Please create an issue here on GitHub!
https://github.com/LuttyYang/luci-theme-material/issues https://github.com/LuttyYang/luci-theme-material/issues
luci-theme-bootstrap: luci-theme-bootstrap:
Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
Copyright 2012 David Menting <david@nut-bolt.nl> Copyright 2012 David Menting <david@nut-bolt.nl>
MUI: MUI:
https://github.com/muicss/mui https://github.com/muicss/mui
Licensed to the public under the Apache License 2.0 Licensed to the public under the Apache License 2.0
-%> -%>
<% <%
@ -26,26 +26,27 @@
local tree = disp.node() local tree = disp.node()
local categories = disp.node_childs(tree) local categories = disp.node_childs(tree)
%> %>
</div> </div>
<footer class="mobile-hide"> <footer class="mobile-hide">
<a href="https://github.com/openwrt/luci">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a> / <a href="https://github.com/openwrt/luci">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a> / <%= ver.distversion %>
<%= ver.distversion %> <% if #categories > 1 then %>
<% if #categories > 1 then %> <ul class="breadcrumb pull-right" id="modemenu">
<ul class="breadcrumb pull-right" id="modemenu"> <% for i, r in ipairs(categories) do %>
<% for i, r in ipairs(categories) do %> <li<% if request[1] == r then %> class="active"<%end%>>
<li<% if request[1] == r then %> class="active"<%end%>><a href="<%=controller%>/<%=r%>/"><%=striptags(translate(tree.nodes[r].title))%></a> <span class="divider">|</span></li> <a href="<%=controller%>/<%=r%>/"><%=striptags(translate(tree.nodes[r].title))%></a>
<% end %> <span class="divider">|</span>
</ul> </li>
<% end %> <% end %>
</footer> </ul>
</div> <% end %>
</div> </footer>
</div>
<script> </div>
// thanks for Jo-Philipp Wich <jow@openwrt.org> <script>
var luciLocation = <%= luci.http.write_json(luci.dispatcher.context.path) %>; // thanks for Jo-Philipp Wich <jow@openwrt.org>
</script> var luciLocation = <%= luci.http.write_json(luci.dispatcher.context.path) %>;
<script src="<%=media%>/js/jquery.min.js"></script> </script>
<script src="<%=media%>/js/script.js"></script> <script src="<%=media%>/js/jquery.min.js"></script>
<script src="<%=media%>/js/script.js"></script>
</body> </body>
</html> </html>