<% local dsp = require "luci.dispatcher" local utl = require "luci.util" include("header") local function cmp(a, b) return (nodes[a].order or 100) < (nodes[b].order or 100) end for k, v in utl.spairs(nodes, cmp) do if v.niu_dbtemplate or v.niu_dbtasks then %>
style="background-image: url(<%=resource%>/<%=v.niu_dbicon%>)"<% end %>><%=v.title%> <% if v.niu_dbtemplate then tpl.render(v.niu_dbtemplate) end %> <% if v.niu_dbtasks then %>

Tasks:

<% end %>
<% end end %> <%+footer%>