Comparison

plugins/mod_admin_shell.lua @ 11889:df76802dc09c

mod_admin_shell: Specify a width for cert column Avoids ellipsis
author Kim Alvefur <zash@zash.se>
date Wed, 10 Nov 2021 21:31:41 +0100
parent 11888:050c515fe9aa
child 11891:6a241e66eec5
comparison
equal deleted inserted replaced
11888:050c515fe9aa 11889:df76802dc09c
724 end; 724 end;
725 }; 725 };
726 cert = { 726 cert = {
727 title = "Certificate"; 727 title = "Certificate";
728 key = "cert_identity_status"; 728 key = "cert_identity_status";
729 width = 13;
729 mapper = function(cert_status, session) 730 mapper = function(cert_status, session)
730 if cert_status ~= "" then return capitalize(cert_status); end 731 if cert_status ~= "" then return capitalize(cert_status); end
731 if session.cert_chain_status == "Invalid" then 732 if session.cert_chain_status == "Invalid" then
732 local cert_errors = set.new(session.cert_chain_errors[1]); 733 local cert_errors = set.new(session.cert_chain_errors[1]);
733 if cert_errors:contains("certificate has expired") then 734 if cert_errors:contains("certificate has expired") then