From fb3cc9787652312ac452372d3a8e8efb893c4a0f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 2 Feb 2015 22:29:46 -0500 Subject: Added getcachain action to show the parent CAs when we are in a child, modified all views to display it This includes adding a generic HTML view to display cadir and then display the cfe --- openssl-viewrequest-html.lsp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openssl-viewrequest-html.lsp') diff --git a/openssl-viewrequest-html.lsp b/openssl-viewrequest-html.lsp index c43dc80..36ccbb5 100644 --- a/openssl-viewrequest-html.lsp +++ b/openssl-viewrequest-html.lsp @@ -2,6 +2,12 @@ <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> +<% +if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("getcachain") and page_info.orig_action == page_info.prefix..page_info.controller.."/"..page_info.action then + viewlibrary.dispatch_component("getcachain", {cadir=view.value.cadir.value}) +end +%> + <% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %>
<%= html.html_escape(view.value.details.value.value) %>
<% htmlviewfunctions.displaysectionend(header_level) %> -- cgit v1.2.3