summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-rosy/luasrc/view/themes/rosy/footer.htm
blob: f0cbe4e9689c3d5f089e12752f14b414160cd34c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<%#                                   
    Rosy is a theme for LuCI. It is based on luci-theme-bootstrap
    luci-theme-rosy
        Copyright 2018 Rosy Song <rosysong@rosinson.com>
        Copyright 2018 Yan Lan Shen <yanlan.shen@rosinson.com>
    
    Have a bug? Please create an issue here on GitHub!
        https://github.com/rosywrt/luci-theme-rosy/issues

    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>

    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)
%>

</div>
</div>
</div>
<footer class="mobile-hide">
    <a href="https://github.com/openwrt/luci">Powered by<%= ver.luciname %> (<%= ver.luciversion %>)</a> /
    <%= ver.distversion %>
    <% if #categories > 1 then %>
    <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>
    <% end %>
</footer>

<script>                                         
    var luciLocation = <%= luci.http.write_json(luci.dispatcher.context.path) %>;
</script>
<script src="<%=media%>/js/jquery.min.js?v=git-18.247.71242-9541751"></script>
<script src="<%=media%>/js/script.js?v=git-18.247.71242-9541751"></script>
</body>

</html>