init Material Design theme
[project/luci.git] / themes / luci-theme-material / luasrc / view / themes / material / footer.htm
diff --git a/themes/luci-theme-material/luasrc/view/themes/material/footer.htm b/themes/luci-theme-material/luasrc/view/themes/material/footer.htm
new file mode 100755 (executable)
index 0000000..25a8b8c
--- /dev/null
@@ -0,0 +1,42 @@
+<%#
+luci-theme-material is based on MUI and luci-theme-bootstrap.
+
+luci-theme-bootstrap:
+Copyright 2008 Steven Barth <steven@midlink.org>
+Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
+Copyright 2012 David Menting <david@nut-bolt.nl>
+
+MUI:
+https://github.com/muicss/mui
+
+luci-theme-material
+Copyright 2015 Lutty Yang <lutty@wcan.in>
+
+Licensed to the public under the Apache License 2.0
+-%>
+
+<%
+       local ver = require "luci.version"
+       local disp = require "luci.dispatcher"
+       local request  = disp.context.path
+       local category = request[1]
+       local tree = disp.node()
+       local categories = disp.node_childs(tree)
+%>
+                    <% if #categories > 1 then %>
+                    <footer>
+                        <ul class="breadcrumb pull-right" id="modemenu">
+                            <% for i, r in ipairs(categories) do %>
+                            <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>
+                            <% end %>
+                        </ul>
+                    </footer>
+                    <% end %>
+                </div>
+            </div>
+        </div>
+
+    <script src="<%=media%>/js/jquery.min.js"></script>
+    <script src="<%=media%>/js/script.js"></script>
+</body>
+</html>