mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
Make about:config a bit nicer, if resource: is implemented on your front end.
svn path=/trunk/netsurf/; revision=11999
This commit is contained in:
parent
9af493757d
commit
66ac795f04
@ -168,16 +168,30 @@ static bool fetch_about_config_handler(struct fetch_about_context *ctx)
|
|||||||
|
|
||||||
slen = snprintf(buffer, sizeof buffer,
|
slen = snprintf(buffer, sizeof buffer,
|
||||||
"<html><head><title>NetSurf Browser Config</title>"
|
"<html><head><title>NetSurf Browser Config</title>"
|
||||||
"<style type=\"text/css\">"
|
"<link rel=\"stylesheet\" title=\"Standard\" "
|
||||||
".null-content { font-style: italic }"
|
"type=\"text/css\" href=\"resource:internal.css\">"
|
||||||
"</style></head>"
|
"<style>"
|
||||||
"<body><h1>NetSurf Browser Config</h1>"
|
"table.config th {"
|
||||||
"<table><tr><th></th><th></th><th></th></tr>");
|
"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 {
|
do {
|
||||||
res = options_snoptionf(buffer + slen, sizeof buffer - slen,
|
res = options_snoptionf(buffer + slen, sizeof buffer - slen,
|
||||||
opt_loop,
|
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)
|
if (res <= 0)
|
||||||
break; /* last option */
|
break; /* last option */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user