summaryrefslogtreecommitdiffhomepage
path: root/modules/niu/luasrc/view/niu/dashboard.htm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/niu/luasrc/view/niu/dashboard.htm')
-rw-r--r--modules/niu/luasrc/view/niu/dashboard.htm22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/niu/luasrc/view/niu/dashboard.htm b/modules/niu/luasrc/view/niu/dashboard.htm
new file mode 100644
index 0000000000..cdd65663f2
--- /dev/null
+++ b/modules/niu/luasrc/view/niu/dashboard.htm
@@ -0,0 +1,22 @@
+<%+header%>
+
+<%
+local function cmp(a, b)
+ return (a.order or 100) < (b.order or 100)
+end
+for k, v in utl.spairs(nodes, cmp) do
+ if v.dbtemplate then
+ %>
+ <fieldset style="float: left; margin: 1em; padding: 0.5em">
+ <legend><%=v.title%></legend>
+ <%
+ tpl.render(v.dbtemplate)
+ %>
+ </fieldset>
+ <%
+ end
+end
+
+%>
+
+<%+footer%> \ No newline at end of file