index b5a01d55ec5e5c4e1eaa0dde3bb4b4d5a4afc884..6f919e3afdfdce142a054b71d18a8e8a81844c78 100644 (file)
--- a/src/action_list_graphs.c
+++ b/src/action_list_graphs.c
html_escape_buffer (params, sizeof (params));
printf (" <li class=\"graph\"><a href=\"%s?action=show_graph;%s\">"
- "%s</a> <span class=\"num_instances\">(%lu %s)</span></li>\n",
+ "%s</a> <span class=\"num_instances\">(%lu %s)</span></li>\n",
script_name (), params, title,
(unsigned long) num_instances,
(num_instances == 1) ? "instance" : "instances");
static int print_all_graphs (__attribute__((unused)) void *user_data) /* {{{ */
{
+ const char *dynamic;
+ _Bool include_dynamic = 0;
+
+ dynamic = param ("dynamic");
+ if ((dynamic != NULL)
+ && (strcmp ("true", dynamic) == 0))
+ include_dynamic = 1;
+
printf (" <ul class=\"graph_list\">\n");
- gl_graph_get_all (print_one_graph, /* user_data = */ NULL);
+ gl_graph_get_all (include_dynamic, print_one_graph, /* user_data = */ NULL);
printf (" </ul>\n");
+ if (!include_dynamic)
+ {
+ printf (" <div><a href=\"%s?action=list_graphs;dynamic=true\">"
+ "List dynamic graphs, too."
+ "</a></div>\n", script_name ());
+ }
+
return (0);
} /* }}} int print_all_graphs */
int action_list_graphs (void) /* {{{ */
{
- gl_update ();
-
page_callbacks_t pg_callbacks = PAGE_CALLBACKS_INIT;
char title[512];