summaryrefslogtreecommitdiffstats
path: root/rrdtool-listrrd-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2009-07-02 15:41:59 +0000
committerMika Havela <mika.havela@gmail.com>2009-07-02 15:41:59 +0000
commitbc9c06910c0544c3f3029db287beda85afa2b542 (patch)
tree17ddbfe5d64c403b2c360c2e4cf67d0aad6b80a6 /rrdtool-listrrd-html.lsp
parentccda03f6238def938e63e4ccd81c79aed9e2bb88 (diff)
downloadacf-rrdtool-bc9c06910c0544c3f3029db287beda85afa2b542.tar.bz2
acf-rrdtool-bc9c06910c0544c3f3029db287beda85afa2b542.tar.xz
Started on 'create new rrd' function (still much to do).
The viewfile for NewRRD is showing some forms, but it's still not usable.
Diffstat (limited to 'rrdtool-listrrd-html.lsp')
-rw-r--r--rrdtool-listrrd-html.lsp10
1 files changed, 10 insertions, 0 deletions
diff --git a/rrdtool-listrrd-html.lsp b/rrdtool-listrrd-html.lsp
index ebbcc21..24c48d1 100644
--- a/rrdtool-listrrd-html.lsp
+++ b/rrdtool-listrrd-html.lsp
@@ -35,6 +35,16 @@ io.write("</span>")
<TD style="white-space:nowrap;" width="90%"><%= html.html_escape(string.gsub(file.value.filename.value, "^.*/", "")) %></TD>
</TR>
<% end %>
+
+ <% if session.permissions[page_info.controller].createrrd then %>
+ <TR>
+ <TD style="padding-right:20px;white-space:nowrap;">
+ <% io.write(html.link{value = "createrrd", label="Create new DB " }) %>
+ </TD>
+ <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
+ </TR>
+ <% end %>
+
</TABLE>
<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].newfile then