summaryrefslogtreecommitdiff
path: root/content/fetchers
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-03-12 23:00:19 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-03-12 23:00:19 +0000
commit66ac795f04738426b318ade303b932de7d27571e (patch)
treeb545af457328d3bce419f021f2b77cf6819a427d /content/fetchers
parent9af493757d7fe3871737b1f9854c46abdc87348a (diff)
downloadnetsurf-66ac795f04738426b318ade303b932de7d27571e.tar.gz
netsurf-66ac795f04738426b318ade303b932de7d27571e.tar.bz2
Make about:config a bit nicer, if resource: is implemented on your front end.
svn path=/trunk/netsurf/; revision=11999
Diffstat (limited to 'content/fetchers')
-rw-r--r--content/fetchers/about.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index 046c28a63..4d6b13ce0 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -168,16 +168,30 @@ static bool fetch_about_config_handler(struct fetch_about_context *ctx)
slen = snprintf(buffer, sizeof buffer,
"<html><head><title>NetSurf Browser Config</title>"
- "<style type=\"text/css\">"
- ".null-content { font-style: italic }"
- "</style></head>"
- "<body><h1>NetSurf Browser Config</h1>"
- "<table><tr><th></th><th></th><th></th></tr>");
+ "<link rel=\"stylesheet\" title=\"Standard\" "
+ "type=\"text/css\" href=\"resource:internal.css\">"
+ "<style>"
+ "table.config th {"
+ "text-align: left; }"
+ "table.config td {"
+ "padding-left: 1em; }"
+ "table.config td + td {"
+ "padding-left: 3em; }"
+ "</style>"
+ "</head>"
+ "<body>"
+ "<p class=\"banner\">"
+ "<a href=\"http://www.netsurf-browser.org/\">"
+ "<img src=\"resource:netsurf.png\" alt=\"NetSurf\"></a>"
+ "</p>"
+ "<h1>NetSurf Browser Config</h1>"
+ "<table class=\"config\">"
+ "<tr><th></th><th></th><th></th></tr>");
do {
res = options_snoptionf(buffer + slen, sizeof buffer - slen,
opt_loop,
- "<tr><td>%k</td><td>%t</td><td>%V</td></tr>");
+ "<tr><th>%k</th><td>%t</td><td>%V</td></tr>");
if (res <= 0)
break; /* last option */