2 Copyright 2008 Steven Barth <steven@midlink.org>
3 Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
4 Copyright 2012 David Menting <david@nut-bolt.nl>
5 Licensed to the public under the Apache License 2.0.
9 local ver = require "luci.version"
10 local disp = require "luci.dispatcher"
11 local request = disp.context.path
12 local category = request[1]
13 local tree = disp.node()
14 local categories = disp.node_childs(tree)
17 <a href="https://github.com/openwrt/luci">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a> / <%= ver.distversion %>
18 <% if #categories > 1 then %>
19 <ul class="breadcrumb pull-right" id="modemenu">
20 <% for i, r in ipairs(categories) do %>
21 <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>