mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Page info: Improve certificate fault display style.
This commit is contained in:
parent
c50b19469e
commit
e201597a8d
@ -1262,9 +1262,16 @@ format_certificate(struct fetch_about_context *ctx,
|
||||
|
||||
if (cert_info->err != SSL_CERT_ERR_OK) {
|
||||
res = ssenddataf(ctx,
|
||||
"<div class=\"error\">\n"
|
||||
"<p><b>%s</b></p>\n",
|
||||
"<table class=\"info\">\n"
|
||||
"<tr class=\"ns-even-fg-bad\">"
|
||||
"<th>Fault</th>"
|
||||
"<td>%s</td>"
|
||||
"</tr>"
|
||||
"</table>\n",
|
||||
messages_get_sslcode(cert_info->err));
|
||||
if (res != NSERROR_OK) {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
res = ssenddataf(ctx,
|
||||
@ -1359,10 +1366,6 @@ format_certificate(struct fetch_about_context *ctx,
|
||||
return res;
|
||||
}
|
||||
|
||||
if (cert_info->err != SSL_CERT_ERR_OK) {
|
||||
res = ssenddataf(ctx, "</div>\n");
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -214,10 +214,6 @@ body#certificate table.info td.data {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
body#certificate div.error {
|
||||
background: #FFEAEA;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* configuration listing style
|
||||
|
Loading…
Reference in New Issue
Block a user