X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Faction_list_graphs.c;h=684321c29b4e642092b77c12b2d0ac6502adc852;hb=106898de4312399d7d7c28fbbd70537b1979a66f;hp=07404243a9430c2edceebe1caf4105c306ce1b57;hpb=ac284c5c84056ffeb0bb81240fb7dac3eb65f2d4;p=collection4.git diff --git a/src/action_list_graphs.c b/src/action_list_graphs.c index 0740424..684321c 100644 --- a/src/action_list_graphs.c +++ b/src/action_list_graphs.c @@ -115,6 +115,27 @@ static int print_graph_inst_html (graph_config_t *cfg, /* {{{ */ return (0); } /* }}} int print_graph_inst_html */ +static int print_graph_html (graph_config_t *cfg, /* {{{ */ + __attribute__((unused)) void *user_data) +{ + char params[1024]; + char title[1024]; + + memset (title, 0, sizeof (title)); + graph_get_title (cfg, title, sizeof (title)); + html_escape_buffer (title, sizeof (title)); + + memset (params, 0, sizeof (params)); + graph_get_params (cfg, params, sizeof (params)); + html_escape_buffer (params, sizeof (params)); + + printf ("
  • " + "%s
  • \n", + script_name (), params, title); + + return (0); +} /* }}} int print_graph_html */ + struct page_data_s { const char *search_term; @@ -138,7 +159,9 @@ static int print_search_result (void *user_data) /* {{{ */ printf ("