Code

"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 f59da7c474ff1e222ca6bc0f99b5d5b98fc85c36..ac37cc025a519c2eb8d7ba52451e0b10f6b44b0a 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");
 
+  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 */