From: Krzysztof Piotr Oledzki Date: Mon, 12 Oct 2009 21:09:08 +0000 (+0200) Subject: [MINOR] CSS & HTML fun X-Git-Tag: v1.4-dev5~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2d2b1d128dfa91719bb70cc847b4a14df27c4be;p=thirdparty%2Fhaproxy.git [MINOR] CSS & HTML fun This patch makes stats page about 30% smaller and "CSS 2.1" + "HTML 4.01 Transitional" compliant. There should be no visible differences. Changes: - add DOCTYPE for HTML 4.01 Transitional - add missing - remove cols=, AFAIK no modern browser support this property and it prevents validation to pass. - remove "align: center": there is no such property in css. There is however "text-align: center" but it is definitely not what we would like to see here. - by default align .titre to center - by default align .td to right - remove all align=right, no longer necessary - add class=ac (align center): shorter than "align=center" and use it when necessary - remove nowrap from td, instead use "white-space: nowrap" in css Now stats page passes W3C validators for HTML & CSS. We may consider adding "validated" icons from www.w3.org. ;) --- diff --git a/src/dumpstats.c b/src/dumpstats.c index 5e7312f671..86b88927b8 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -922,6 +922,8 @@ int stats_dump_http(struct session *s, struct buffer *rep, struct uri_auth *uri) if (!(s->data_ctx.stats.flags & STAT_FMT_CSV)) { /* WARNING! This must fit in the first buffer !!! */ chunk_printf(&msg, + "\n" "Statistics Report for " PRODUCT_NAME "%s%s\n" "\n" "