| 683 | } |
| 684 | |
| 685 | static void add_status_cell(status_ctx *ctx, md_json_t *mdj, const status_info *info) |
| 686 | { |
| 687 | if (info->fn) { |
| 688 | info->fn(ctx, mdj, info); |
| 689 | } |
| 690 | else { |
| 691 | const char *prefix = ctx->prefix; |
| 692 | if (!HTML_STATUS(ctx)) { |
| 693 | ctx->prefix = apr_pstrcat(ctx->p, prefix, info->label, NULL); |
| 694 | } |
| 695 | add_json_val(ctx, md_json_getj(mdj, info->key, NULL)); |
| 696 | if (!HTML_STATUS(ctx)) { |
| 697 | ctx->prefix = prefix; |
| 698 | } |
| 699 | } |
| 700 | } |
| 701 | |
| 702 | static const status_info status_infos[] = { |
| 703 | { "Domain", MD_KEY_NAME, NULL }, |
no test coverage detected