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