From: David Harrigan Date: Fri, 30 Dec 2016 12:12:49 +0000 (+0000) Subject: MINOR: stats: Support "select all" for backend actions X-Git-Tag: v1.8-dev1~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3db35a1d179c7dd3d3f5154465672af203cecd5;p=thirdparty%2Fhaproxy.git MINOR: stats: Support "select all" for backend actions Allow the user to quickly select all servers within a group before invoking an action. --- diff --git a/src/stats.c b/src/stats.c index b0c0fc5bbd..b7d030351f 100644 --- a/src/stats.c +++ b/src/stats.c @@ -636,7 +636,8 @@ static int stats_dump_fields_html(struct chunk *out, const struct field *stats, if (flags & ST_SHOWADMIN) chunk_appendf(out, - "", + "", + field_str(stats, ST_F_PXNAME), field_str(stats, ST_F_SVNAME)); chunk_appendf(out, @@ -1642,7 +1643,12 @@ static void stats_dump_html_px_hdr(struct stream_interface *si, struct proxy *px if ((px->cap & PR_CAP_BE) && px->srv && (appctx->ctx.stats.flags & STAT_ADMIN)) { /* Column heading for Enable or Disable server */ - chunk_appendf(&trash, ""); + chunk_appendf(&trash, + "", + px->id, + px->id); } chunk_appendf(&trash,