summaryrefslogtreecommitdiffstats
path: root/openvpn-viewconfig-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-11-19 16:26:08 +0000
committerTed Trask <ttrask01@yahoo.com>2009-11-19 16:26:08 +0000
commit3424c10a7a9cadc4697951b259d70fc26f56b197 (patch)
tree414f27c79e0f51dc4bf0e4bffb2ff680c778f1cb /openvpn-viewconfig-html.lsp
parent0b4d7742743741065201b8acf084b9248b5f186e (diff)
downloadacf-openvpn-3424c10a7a9cadc4697951b259d70fc26f56b197.tar.bz2
acf-openvpn-3424c10a7a9cadc4697951b259d70fc26f56b197.tar.xz
Major changes to only handle one config and add cert processing.
Diffstat (limited to 'openvpn-viewconfig-html.lsp')
-rw-r--r--openvpn-viewconfig-html.lsp10
1 files changed, 5 insertions, 5 deletions
diff --git a/openvpn-viewconfig-html.lsp b/openvpn-viewconfig-html.lsp
index 65240a9..b644195 100644
--- a/openvpn-viewconfig-html.lsp
+++ b/openvpn-viewconfig-html.lsp
@@ -2,7 +2,7 @@
<% require("format") %>
<% local shortname = string.gsub(view.value.name, "^.*/", "") %>
-<h1><%= html.html_escape(format.cap_begin_word(view.value.type)) %> config '<%= html.html_escape(shortname) %>'</h1>
+<h1><%= html.html_escape(format.cap_begin_word(view.value.type)) %> Config</h1>
<h2><%= html.html_escape(format.cap_begin_word(view.value.type)) %> settings</h2>
<dl>
@@ -51,22 +51,22 @@
<dl>
<% if (view.value.dh) then %>
<dt>DH</dt>
-<dd><%= html.html_escape(view.value.dh) %><% -- html.link{value = page_info.script .. page_info.prefix .. page_info.controller .. "/pem_info?name=" .. view.value.dh , label=view.value.dh } %></dd>
+<dd><%= html.link{value = page_info.script .. page_info.prefix .. page_info.controller .. "/viewcert?cert=" .. view.value.dh, label=view.value.dh } %></dd>
<% end %>
<% if (view.value.ca) then %>
<dt>CA Certificate</dt>
-<dd><%= html.html_escape(view.value.ca) %><% -- html.link{value = page_info.script .. page_info.prefix .. page_info.controller .. "/pem_info?name=" .. view.value.ca , label=view.value.ca } %></dd>
+<dd><%= html.link{value = page_info.script .. page_info.prefix .. page_info.controller .. "/viewcert?cert=" .. view.value.ca, label=view.value.ca } %></dd>
<% end %>
<% if (view.value.cert) then %>
<dt>Certificate</dt>
-<dd><%= html.html_escape(view.value.cert) %><% -- html.link{value = page_info.script .. page_info.prefix .. page_info.controller .. "/pem_info?name=" .. view.value.cert , label=view.value.cert } %></dd>
+<dd><%= html.link{value = page_info.script .. page_info.prefix .. page_info.controller .. "/viewcert?cert=" .. view.value.cert, label=view.value.cert } %></dd>
<% end %>
<% if (view.value.key) then %>
<dt>Private Key</dt>
-<dd><%= html.html_escape(view.value.key) %><% -- html.link{value = page_info.script .. page_info.prefix .. page_info.controller .. "/pem_info?name=" .. view.value.key , label=view.value.key } %></dd>
+<dd><%= html.html_escape(view.value.key) %></dd>
<% end %>
<% if (view.value.tls) then %>