themes: require luci.version directly
[project/luci.git] / themes / luci-theme-bootstrap / luasrc / view / themes / bootstrap / footer.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5 Copyright 2012 David Menting <david@nut-bolt.nl>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13 -%>
14 <%
15         local ver = require "luci.version"
16         local disp = require "luci.dispatcher"
17         local request  = disp.context.path
18         local category = request[1]
19         local tree = disp.node()
20         local categories = disp.node_childs(tree)
21 %>
22    <footer>
23     <a href="http://luci.subsignal.org/">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a> / <%= ver.distversion %>
24     <% if #categories > 1 then %>
25      <ul class="breadcrumb pull-right" id="modemenu">
26             <% for i, r in ipairs(categories) do %>
27                     <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>
28             <% end %>
29      </ul>
30     <% end %>
31    </footer>
32    </div>
33   </div>
34  </body>
35 </html>
36