X-Git-Url: https://git.octo.it/?p=collection4.git;a=blobdiff_plain;f=src%2Faction_show_instance.c;h=0e1e43c9c79875bfe1699cab4c0dc07242dba7f0;hp=034aeb05fabbe8bc40a7e39f0beb5e7f6f9ccc3b;hb=ec060bd3831805d241bcd00d4d09b59ec8b10c26;hpb=9215c4b703c9024eb34ffb3157ab80bbebd5be89 diff --git a/src/action_show_instance.c b/src/action_show_instance.c index 034aeb0..0e1e43c 100644 --- a/src/action_show_instance.c +++ b/src/action_show_instance.c @@ -146,17 +146,35 @@ static int left_menu (void *user_data) /* {{{ */ { show_graph_data_t *data = user_data; char params[1024]; + graph_ident_t *ident; + const char *host; memset (params, 0, sizeof (params)); graph_get_params (data->cfg, params, sizeof (params)); html_escape_buffer (params, sizeof (params)); + ident = inst_get_selector (data->inst); + host = ident_get_host (ident); + if (IS_ANY (host)) + host = NULL; + printf ("\n\n", + "
  • All graphs
  • \n", script_name (), params, script_name ()); + if (host != NULL) + { + char host_html[1024]; + char host_uri[1024]; + + html_escape_copy (host_html, host, sizeof (host_html)); + uri_escape_copy (host_uri, host, sizeof (host_uri)); + + printf ("
  • Host "%s"
  • \n", + script_name (), host_uri, host_html); + } + printf ("\n"); return (0); } /* }}} int left_menu */