Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/e201597a8dd9ba0aee21c0afbc699e76efe99efc
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/e201597a8dd9ba0aee21c0afbc699e76efe99efc
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/e201597a8dd9ba0aee21c0afbc699e76efe99efc

The branch, master has been updated
       via  e201597a8dd9ba0aee21c0afbc699e76efe99efc (commit)
      from  c50b19469e88148dc666eb8881bcdaa53f1b6c14 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=e201597a8dd9ba0aee21c0afbc699e76efe99efc
commit e201597a8dd9ba0aee21c0afbc699e76efe99efc
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Page info: Improve certificate fault display style.

diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index 3b81473..796b390 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -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;
 }
 
diff --git a/resources/internal.css b/resources/internal.css
index d6278ca..a6b666b 100644
--- a/resources/internal.css
+++ b/resources/internal.css
@@ -214,10 +214,6 @@ body#certificate table.info td.data {
        font-size: 90%;
 }
 
-body#certificate div.error {
-    background: #FFEAEA;
-}
-
 
 /* 
  * configuration listing style 


-----------------------------------------------------------------------

Summary of changes:
 content/fetchers/about.c |   15 +++++++++------
 resources/internal.css   |    4 ----
 2 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index 3b81473..796b390 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -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;
 }
 
diff --git a/resources/internal.css b/resources/internal.css
index d6278ca..a6b666b 100644
--- a/resources/internal.css
+++ b/resources/internal.css
@@ -214,10 +214,6 @@ body#certificate table.info td.data {
        font-size: 90%;
 }
 
-body#certificate div.error {
-    background: #FFEAEA;
-}
-
 
 /* 
  * configuration listing style 


-- 
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to