| 665 | } |
| 666 | |
| 667 | static void si_val_names(status_ctx *ctx, md_json_t *mdj, const status_info *info) |
| 668 | { |
| 669 | const char *prefix = ctx->prefix; |
| 670 | if (HTML_STATUS(ctx)) { |
| 671 | apr_brigade_puts(ctx->bb, NULL, NULL, "<div style=\"max-width:400px;\">"); |
| 672 | } |
| 673 | else { |
| 674 | ctx->prefix = apr_pstrcat(ctx->p, prefix, info->label, NULL); |
| 675 | } |
| 676 | add_json_val(ctx, md_json_getj(mdj, info->key, NULL)); |
| 677 | if (HTML_STATUS(ctx)) { |
| 678 | apr_brigade_puts(ctx->bb, NULL, NULL, "</div>"); |
| 679 | } |
| 680 | else { |
| 681 | ctx->prefix = prefix; |
| 682 | } |
| 683 | } |
| 684 | |
| 685 | static void add_status_cell(status_ctx *ctx, md_json_t *mdj, const status_info *info) |
| 686 | { |
nothing calls this directly
no test coverage detected