summaryrefslogtreecommitdiffstats
path: root/rrdtool-listrrd-html.lsp
diff options
context:
space:
mode:
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