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>
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
11 http://www.apache.org/licenses/LICENSE-2.0
15 local disp = require "luci.dispatcher"
17 local request = disp.context.path
19 local category = request[1]
21 local tree = disp.node()
23 local categories = disp.node_childs(tree)
25 <footer><a href="<%=controller%>/about">Powered by <%= luci.__appname__ .. " (" .. luci.__version__ .. ")" %></a>
27 <%=luci.version.distversion%>
29 <% if #categories > 1 then %>
30 <ul class="breadcrumb pull-right" id="modemenu">
31 <% for i, r in ipairs(categories) do %>
32 <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>