25a8b8cb66349cfb87fe1dc5b8eb83bc8230169b
[project/luci.git] / themes / luci-theme-material / luasrc / view / themes / material / footer.htm
1 <%#
2 luci-theme-material is based on MUI and luci-theme-bootstrap.
3
4 luci-theme-bootstrap:
5 Copyright 2008 Steven Barth <steven@midlink.org>
6 Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
7 Copyright 2012 David Menting <david@nut-bolt.nl>
8
9 MUI:
10 https://github.com/muicss/mui
11
12 luci-theme-material
13 Copyright 2015 Lutty Yang <lutty@wcan.in>
14
15 Licensed to the public under the Apache License 2.0
16 -%>
17
18 <%
19         local ver = require "luci.version"
20         local disp = require "luci.dispatcher"
21         local request  = disp.context.path
22         local category = request[1]
23         local tree = disp.node()
24         local categories = disp.node_childs(tree)
25 %>
26                     <% if #categories > 1 then %>
27                     <footer>
28                         <ul class="breadcrumb pull-right" id="modemenu">
29                             <% for i, r in ipairs(categories) do %>
30                             <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>
31                             <% end %>
32                         </ul>
33                     </footer>
34                     <% end %>
35                 </div>
36             </div>
37         </div>
38
39     <script src="<%=media%>/js/jquery.min.js"></script>
40     <script src="<%=media%>/js/script.js"></script>
41 </body>
42 </html>