2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
16 local node = luci.dispatcher.context.requested
19 <div class="dashboard">
21 for k, v in luci.util.spairs(node.nodes, function (a,b)
22 return (node.nodes[a].order or 100) < (node.nodes[b].order or 100)
24 if v.title and #v.title > 0 and not v.ignoreindex and (v.index or v.target) then
25 local csscl = "dashicon di_%s" % (v.style or k)
27 local pref = luci.util.clone(luci.dispatcher.context.request)
29 local target = luci.dispatcher.build_url(unpack(pref))
31 <div class="<%=csscl%>">
32 <a href="<%=target%>" <%-
34 %> style="background-image: url(<%=resource%>/<%=iconl%>)"<%-
43 <div class="clear"></div>