2
0
Fork 0

[mod_status] Hide main/runtime links and version if 'short' option is set

personal/stbuehler/wip
Thomas Porzelt 2009-09-16 13:38:23 +02:00
parent 55734af993
commit 9032de4986
1 changed files with 9 additions and 1 deletions

View File

@ -56,6 +56,13 @@ static const gchar html_top[] =
" <strong>Started at</strong>: <span>%s</span>\n"
" <strong>Version</strong>: <span>" PACKAGE_VERSION " (" __DATE__ " " __TIME__ ")</span>\n"
" </div>\n";
static const gchar html_top_short[] =
" <div class=\"header\">Lighttpd Server Status</div>\n"
" <div class=\"spacer\">\n"
" <strong>Hostname</strong>: <span>%s</span>"
" <strong>Uptime</strong>: <span>%s</span>\n"
" <strong>Started at</strong>: <span>%s</span>\n"
" </div>\n";
static const gchar html_worker_th[] =
" <table cellspacing=\"0\">\n"
" <tr>\n"
@ -403,7 +410,8 @@ static void status_collect_cb(gpointer cbdata, gpointer fdata, GPtrArray *result
));
li_counter_format((guint64)(CUR_TS(vr->wrk) - vr->wrk->srv->started), COUNTER_TIME, tmpstr);
g_string_append_printf(html, html_top,
g_string_append_printf(html, job->short_info ? html_top_short : html_top,
vr->request.uri.host->str,
tmpstr->str,
vr->wrk->srv->started_str->str