From 6354a6d5d2a9f645bca8901edb116d6103b81d01 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:44:14 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- openssl-checkenvironment-html.lsp | 18 ++++++++---------- openssl-putcacert-html.lsp | 2 +- openssl-read-html.lsp | 28 ++++++++++------------------ openssl-status-html.lsp | 24 +++++++++++------------- openssl-viewcert-html.lsp | 2 +- openssl-viewrequest-html.lsp | 2 +- 6 files changed, 32 insertions(+), 44 deletions(-) diff --git a/openssl-checkenvironment-html.lsp b/openssl-checkenvironment-html.lsp index 2e4f9c4..3475bbc 100644 --- a/openssl-checkenvironment-html.lsp +++ b/openssl-checkenvironment-html.lsp @@ -2,16 +2,14 @@ <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> -

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

-<% if form.value.status.errtxt then +

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

+<% +if form.value.status.errtxt then form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action htmlviewfunctions.displayformstart(form) -else %> -
-<% end %> -<% htmlviewfunctions.displayitem(form.value.status) %> -<% if form.value.status.errtxt then +end +htmlviewfunctions.displayitem(form.value.status) +if form.value.status.errtxt then htmlviewfunctions.displayformend(form) -else %> -
-<% end %> +end +%> diff --git a/openssl-putcacert-html.lsp b/openssl-putcacert-html.lsp index a4a0609..1d178fe 100644 --- a/openssl-putcacert-html.lsp +++ b/openssl-putcacert-html.lsp @@ -2,7 +2,7 @@ <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> -

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

+

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

<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action form.enctype = "multipart/form-data" diff --git a/openssl-read-html.lsp b/openssl-read-html.lsp index 25fa297..a3dd4b3 100644 --- a/openssl-read-html.lsp +++ b/openssl-read-html.lsp @@ -16,18 +16,17 @@ <% htmlviewfunctions.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 %>

-
+

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 +

No certificates pending

<% else %> @@ -62,7 +61,6 @@
<% end %> -
<% local reverserevoked = {} local approved = {} @@ -82,10 +80,9 @@ else approved = view.value.approved.value end %> -

Approved certificate requests<% if view.value.user then%> for <%= html.html_escape(view.value.user.value) %><% 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 +

No certificates approved

<% else %> @@ -130,12 +127,10 @@ end %>
<% end %> -
-

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

-
+

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

<% if #revoked == 0 then %> - No certificates revoked +

No certificates revoked

<% else %> @@ -170,12 +165,9 @@ end %>
<% end %> -
<% if viewlibrary.check_permission("getrevoked") then %> -

Get revoked list (crl)

-
+

Get revoked list (crl)

<%= html.link{value="getrevoked?viewtype=stream&crltype=PEM", label="Download PEM "} %>
<%= html.link{value="getrevoked?viewtype=stream&crltype=DER", label="Download DER "} %>
-
<% end %> diff --git a/openssl-status-html.lsp b/openssl-status-html.lsp index 2a3e44f..cb02df8 100644 --- a/openssl-status-html.lsp +++ b/openssl-status-html.lsp @@ -5,22 +5,22 @@ <% htmlviewfunctions.displaycommandresults({"checkenvironment", "putcacert", "generatecacert"}, session, true) %> <% htmlviewfunctions.displaycommandresults({"install"}, session) %> -

System Info

-
+

System Info

<% htmlviewfunctions.displayitem(view.value.version) if view.value.version and view.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then %> -
Install package
-
" method="POST"> +

Install package

+
+ " method="post"> -
+ + <% end %> <% htmlviewfunctions.displayitem(view.value.conffile) %> <% htmlviewfunctions.displayitem(view.value.environment) %> <% htmlviewfunctions.displayitem(view.value.cacert) %> <% htmlviewfunctions.displayitem(view.value.cakey) %> -
<% if not view.value.version.errtxt and not view.value.conffile.errtxt then if view.value.environment.errtxt then @@ -28,8 +28,8 @@ if view.value.version and view.value.version.errtxt and viewlibrary.check_permis viewlibrary.dispatch_component("checkenvironment") end elseif not view.value.cacert.errtxt and not view.value.cakey.errtxt then %> -

CA Certificate contents

-
<%= html.html_escape(view.value.cacertcontents.value) %>
+

CA Certificate contents

+
<%= html.html_escape(view.value.cacertcontents.value) %>
<% elseif viewlibrary and viewlibrary.dispatch_component then if viewlibrary.check_permission("putcacert") then viewlibrary.dispatch_component("putcacert") @@ -40,9 +40,7 @@ if view.value.version and view.value.version.errtxt and viewlibrary.check_permis end end %> <% if viewlibrary.check_permission("downloadcacert") then %> -

Download CA Cert

-
-<%= html.link{value="downloadcacert?viewtype=stream&certtype=pem", label="Download PEM"} %>
-<%= html.link{value="downloadcacert?viewtype=stream&certtype=der", label="Download DER"} %>
-
+

Download CA Cert

+<%= html.link{value="downloadcacert?viewtype=stream&certtype=pem", label="Download PEM"} %>
+<%= html.link{value="downloadcacert?viewtype=stream&certtype=der", label="Download DER"} %>
<% end %> diff --git a/openssl-viewcert-html.lsp b/openssl-viewcert-html.lsp index 418a1aa..dcfb7d6 100644 --- a/openssl-viewcert-html.lsp +++ b/openssl-viewcert-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary = ... %> <% html = require("acf.html") %> -

Certificate Details

+

Certificate Details

<%= html.html_escape(view.value.value) %>
diff --git a/openssl-viewrequest-html.lsp b/openssl-viewrequest-html.lsp index cbd1c45..a4e6440 100644 --- a/openssl-viewrequest-html.lsp +++ b/openssl-viewrequest-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary = ... %> <% html = require("acf.html") %> -

Request Details

+

Request Details

<%= html.html_escape(view.value.value) %>
-- cgit v1.2.3