Add luci, based upon commit : ae8ddb0ca6dfe98cb842fe2c01b36c4df55a0894
[librecmc/librecmc.git] / package / luci / themes / luci-theme-bootstrap / luasrc / view / themes / bootstrap / footer.htm
diff --git a/package/luci/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm b/package/luci/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm
new file mode 100644 (file)
index 0000000..e0a41e1
--- /dev/null
@@ -0,0 +1,30 @@
+<%#
+ 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)
+%>
+   <footer>
+    <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>
+   </div>
+  </div>
+ </body>
+</html>
+