summaryrefslogtreecommitdiffstats
path: root/openssl-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'openssl-html.lsp')
-rw-r--r--openssl-html.lsp12
1 files changed, 12 insertions, 0 deletions
diff --git a/openssl-html.lsp b/openssl-html.lsp
index d8244b9..adac74e 100644
--- a/openssl-html.lsp
+++ b/openssl-html.lsp
@@ -104,12 +104,24 @@ end ?>
<? else ?>
<TABLE>
<TR style="background:#eee;font-weight:bold;">
+ <TD style="padding-right:20px;white-space:nowrap;" class="header">Action</TD>
<TD style="padding-right:20px;white-space:nowrap;" class="header">User</TD>
<TD style="padding-right:20px;white-space:nowrap;" class="header">Cert Type</TD>
<TD style="padding-right:20px;white-space:nowrap;" class="header">Common Name</TD>
<TD style="white-space:nowrap;" class="header">Serial Num</TD>
<? for i,cert in ipairs(revoked) do ?>
<TR>
+ <TD>
+ <? if session.permissions.openssl.viewcert then ?>
+ <?= html.link{value="viewcert?cert="..cert.name, label="View "} ?>
+ <? end ?>
+ <? if session.permissions.openssl.getcert then ?>
+ <?= html.link{value="getcert?cert="..cert.name, label="Download "} ?>
+ <? end ?>
+ <? if session.permissions.openssl.deletecert then ?>
+ <?= html.link{value="deletecert?cert="..cert.name, label="Delete "} ?>
+ <? end ?>
+ </TD>
<TD><?= cert.user ?></TD>
<TD><?= cert.certtype ?></TD>
<TD><?= cert.commonName ?></TD>