<%# LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ -%> <% local node = luci.dispatcher.context.requested if node.nodes then %>
<%- for k, v in luci.util.spairs(node.nodes, function (a,b) return (node.nodes[a].order or 100) < (node.nodes[b].order or 100) end) do if v.title and #v.title > 0 and not v.ignoreindex and (v.index or v.target) then local csscl = "dashicon di_%s" % (v.style or k) local iconl = v.icon local pref = luci.util.clone(luci.dispatcher.context.request) pref[#pref+1] = k local target = luci.dispatcher.build_url(unpack(pref)) %> <% end end -%>
<% end %>