"list graphs" action: Add link to display dynamic graphs, too.
authorFlorian Forster <ff@octo.it>
Wed, 28 Jul 2010 14:56:32 +0000 (16:56 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 28 Jul 2010 14:56:32 +0000 (16:56 +0200)
src/action_list_graphs.c

index f59da7c..ac37cc0 100644 (file)
@@ -88,6 +88,13 @@ static int print_all_graphs (__attribute__((unused)) void *user_data) /* {{{ */
   gl_graph_get_all (include_dynamic, print_one_graph, /* user_data = */ NULL);
   printf ("    </ul>\n");
 
   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 */
 
   return (0);
 } /* }}} int print_all_graphs */