From a8bdc4451614362059d842e14da134ff2fdc2be5 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 21 Aug 2016 15:06:59 +1000 Subject: [PATCH] add css for last 10 --- www/static/style.css | 25 +++++++++++++++++++++++++ www_last10.c | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/www/static/style.css b/www/static/style.css index 6008b73..cea84ba 100644 --- a/www/static/style.css +++ b/www/static/style.css @@ -195,3 +195,28 @@ .button a:hover { background-color: #111111; } + +.last10-row { + display: table-row; + width: auto; + clear: both; + background-color: #eee; +} + +.last10-name { + float: left; + display: table-column; + width: 200px; +} + +.last10-location { + float: left; + display: table-column; + width: 200px; +} + +.last10-date { + float: left; + display: table-column; + width: 200px; +} diff --git a/www_last10.c b/www_last10.c index 7e0346d..83ee9c4 100644 --- a/www_last10.c +++ b/www_last10.c @@ -55,7 +55,7 @@ char *www_last10() { for (z=0;z%s
%s
%.2d:%.2d %.2d-%.2d-%.2d
\n", callers[z].name, callers[z].location, l10_time.tm_hour, l10_time.tm_min, l10_time.tm_mday, l10_time.tm_mon + 1, l10_time.tm_year - 100); + sprintf(buffer, "
%s
%s
%.2d:%.2d %.2d-%.2d-%.2d
\n", callers[z].name, callers[z].location, l10_time.tm_hour, l10_time.tm_min, l10_time.tm_mday, l10_time.tm_mon + 1, l10_time.tm_year - 100); if (len + strlen(buffer) > max_len - 1) { max_len += 4096; page = (char *)realloc(page, max_len);