Page info: Improve certificate fault display style.

This commit is contained in:
Michael Drake 2020-05-18 21:53:28 +01:00
parent c50b19469e
commit e201597a8d
2 changed files with 9 additions and 10 deletions

View File

@ -1262,9 +1262,16 @@ format_certificate(struct fetch_about_context *ctx,
if (cert_info->err != SSL_CERT_ERR_OK) { if (cert_info->err != SSL_CERT_ERR_OK) {
res = ssenddataf(ctx, res = ssenddataf(ctx,
"<div class=\"error\">\n" "<table class=\"info\">\n"
"<p><b>%s</b></p>\n", "<tr class=\"ns-even-fg-bad\">"
"<th>Fault</th>"
"<td>%s</td>"
"</tr>"
"</table>\n",
messages_get_sslcode(cert_info->err)); messages_get_sslcode(cert_info->err));
if (res != NSERROR_OK) {
return res;
}
} }
res = ssenddataf(ctx, res = ssenddataf(ctx,
@ -1359,10 +1366,6 @@ format_certificate(struct fetch_about_context *ctx,
return res; return res;
} }
if (cert_info->err != SSL_CERT_ERR_OK) {
res = ssenddataf(ctx, "</div>\n");
}
return res; return res;
} }

View File

@ -214,10 +214,6 @@ body#certificate table.info td.data {
font-size: 90%; font-size: 90%;
} }
body#certificate div.error {
background: #FFEAEA;
}
/* /*
* configuration listing style * configuration listing style