X-Git-Url: https://git.octo.it/?p=collection4.git;a=blobdiff_plain;f=src%2Faction_list_hosts.c;h=0e7b963187e1202444bc31267ef388b5e13a3b86;hp=b58d6bb2a2aebe59f33e3c972b8efab1a06eed44;hb=e3fb09073a64cc051c11c4a1bdcec493f937b764;hpb=a164d755a41a47cff81a643dfdd088c6a8de76a5 diff --git a/src/action_list_hosts.c b/src/action_list_hosts.c index b58d6bb..0e7b963 100644 --- a/src/action_list_hosts.c +++ b/src/action_list_hosts.c @@ -35,6 +35,17 @@ #include #include +static int left_menu (__attribute__((unused)) void *user_data) /* {{{ */ +{ + printf ("\n\n", + script_name (), script_name ()); + + return (0); +} /* }}} int left_menu */ + static int print_one_host (const char *host, /* {{{ */ __attribute__((unused)) void *user_data) { @@ -62,8 +73,6 @@ static int print_all_hosts (__attribute__((unused)) void *user_data) /* {{{ */ int action_list_hosts (void) /* {{{ */ { - gl_update (); - page_callbacks_t pg_callbacks = PAGE_CALLBACKS_INIT; char title[512]; @@ -71,6 +80,7 @@ int action_list_hosts (void) /* {{{ */ title[sizeof (title) - 1] = 0; pg_callbacks.top_right = html_print_search_box; + pg_callbacks.middle_left = left_menu; pg_callbacks.middle_center = print_all_hosts; html_print_page (title, &pg_callbacks, /* user data = */ NULL);