summaryrefslogtreecommitdiffstats
path: root/rrdtool-listgraphcfg-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2009-07-09 07:23:16 +0000
committerMika Havela <mika.havela@gmail.com>2009-07-09 07:23:16 +0000
commitc6b5228ab2bdf1578a32ffb9cb06b2962cfcb5c6 (patch)
tree8ada6d764f2f5059629e45a956152a7faf877267 /rrdtool-listgraphcfg-html.lsp
parentf220daa661084dba964801f174ceb8013eae41cd (diff)
downloadacf-rrdtool-c6b5228ab2bdf1578a32ffb9cb06b2962cfcb5c6.tar.bz2
acf-rrdtool-c6b5228ab2bdf1578a32ffb9cb06b2962cfcb5c6.tar.xz
Hide path to .graph files
Diffstat (limited to 'rrdtool-listgraphcfg-html.lsp')
-rw-r--r--rrdtool-listgraphcfg-html.lsp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rrdtool-listgraphcfg-html.lsp b/rrdtool-listgraphcfg-html.lsp
index 33d8405..7ca6df5 100644
--- a/rrdtool-listgraphcfg-html.lsp
+++ b/rrdtool-listgraphcfg-html.lsp
@@ -39,7 +39,7 @@ function javascript_confirm_graph(formID,filename) {
<A STYLE="cursor: pointer;" onclick="javascript_confirm_graph('confirmDisplay','<% io.write(file.value.filename.value) %>')">Delete</A>
<% end %>
<%
- if session.permissions[page_info.controller].edit then io.write(html.link{value = "editgraphcfg?filename=" .. file.value.filename.value.."&redir="..page_info.orig_action, label="Edit " }) end
+ if session.permissions[page_info.controller].edit then io.write(html.link{value = "editgraphcfg?filename=" .. string.gsub(file.value.filename.value, "^.*/", "").."&redir="..page_info.orig_action, label="Edit " }) end
%>
</TD>
<TD style="padding-right:20px;white-space:nowrap;text-align:right;"><%= html.html_escape(file.value.filesize.value) %></TD>