From f3924b39a0ace447a8a0ecdbfd0a1a76cb7264d8 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 10 Dec 2009 15:22:54 +0000 Subject: UI fix, bumped to 0.2.1 --- Makefile | 2 +- openssl-checkenvironment-html.lsp | 16 ++++++++-------- openssl-html.lsp | 9 ++++++++- openssl-status-html.lsp | 6 +----- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 613dfc7..a992231 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ APP_NAME=openssl PACKAGE=acf-$(APP_NAME) -VERSION=0.2.0 +VERSION=0.2.1 APP_DIST=\ openssl*.lua \ diff --git a/openssl-checkenvironment-html.lsp b/openssl-checkenvironment-html.lsp index cddd596..0ea7a1e 100644 --- a/openssl-checkenvironment-html.lsp +++ b/openssl-checkenvironment-html.lsp @@ -1,16 +1,16 @@ <% local form, viewlibrary, page_info = ... %> <% require("viewfunctions") %> -<% --[[ DEBUG INFORMATION -io.write(html.cfe_unpack(form)) ---]] %> -

<%= html.html_escape(form.label) %>

-
-<% displayitem(form.value.status) %> -
<% if form.value.status.errtxt then form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action displayformstart(form) +else %> +
+<% end %> +<% displayitem(form.value.status) %> +<% if form.value.status.errtxt then displayformend(form) -end %> +else %> +
+<% end %> diff --git a/openssl-html.lsp b/openssl-html.lsp index bd2ed7e..110c867 100644 --- a/openssl-html.lsp +++ b/openssl-html.lsp @@ -19,6 +19,7 @@ io.write(html.cfe_unpack(view)) <% displaycommandresults({"approve", "deleterequest", "deletemyrequest", "renewcert", "requestrenewcert", "revoke", "deletecert"}, session) %>

Pending certificate requests<% if view.value.user then%> for <%= html.html_escape(view.value.user.value) %><% end %>

+
<% if not view.value.pending or #view.value.pending.value == 0 then %> No certificates pending <% else %> @@ -55,6 +56,7 @@ io.write(html.cfe_unpack(view)) <% end %> +
<% local reverserevoked = {} local approved = {} @@ -75,6 +77,7 @@ else end %>

Approved certificate requests<% if view.value.user then%> for <%= html.html_escape(view.value.user.value) %><% end %>

+
<% if #approved == 0 then %> No certificates approved <% else %> @@ -121,8 +124,10 @@ end %> <% end %> +

Revoked certificates<% if view.value.user then%> for <%= html.html_escape(view.value.user.value) %><% end %>

+
<% if #revoked == 0 then %> No certificates revoked <% else %> @@ -159,11 +164,13 @@ end %> <% end %> +
<% if session.permissions.openssl.getrevoked then %>

Get revoked list (crl)

+
<%= html.link{value="getrevoked?crltype=PEM", label="Download PEM "} %>
<%= html.link{value="getrevoked?crltype=DER", label="Download DER "} %>
<%= html.link{value="getrevoked", label="Import to Firefox"} %>
- +
<% end %> diff --git a/openssl-status-html.lsp b/openssl-status-html.lsp index 68623da..decc991 100644 --- a/openssl-status-html.lsp +++ b/openssl-status-html.lsp @@ -1,10 +1,6 @@ <% local view, viewlibrary, pageinfo, session = ... %> <% require("viewfunctions") %> -<% --[[ DEBUG INFORMATION -io.write(html.cfe_unpack(view)) ---]] %> - <% displaycommandresults({"checkenvironment", "putcacert", "generatecacert"}, session, true) %>

System Info

@@ -26,7 +22,7 @@ io.write(html.cfe_unpack(view)) end elseif not view.value.cacert.errtxt and not view.value.cakey.errtxt then %>

CA Certificate contents

-
<%= html.html_escape(view.value.cacertcontents.value) %>
+
<%= html.html_escape(view.value.cacertcontents.value) %>
<% elseif viewlibrary and viewlibrary.dispatch_component then if session.permissions.openssl.putcacert then viewlibrary.dispatch_component("putcacert") -- cgit v1.2.3