diff --git a/src/elogd.c b/src/elogd.c index 1a4d3a26..3c067496 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -12758,50 +12758,57 @@ void show_new_user_page(LOGBOOK * lbs) rsprintf("Email:\n"); rsprintf("\n"); - rsprintf("%s:\n", loc("Subscribe to logbooks")); + /* count logbooks */ + for (i = 0; lb_list[i].name[0]; i++); - rsprintf("
(%s)\n", - loc("enable automatic email notifications")); + /* only show subscriptions if less than 10, otherwise browser URL might become too long */ + if (i <= 10) { - rsprintf("\n"); + rsprintf("%s:\n", loc("Subscribe to logbooks")); - for (i = 0; lb_list[i].name[0]; i++) { + rsprintf("
(%s)\n", + loc("enable automatic email notifications")); - if (!getcfg_topgroup() || strieq(getcfg_topgroup(), lb_list[i].top_group)) { + rsprintf("\n"); - rsprintf("\n", i, i); - rsprintf("
\n", i, lb_list[i].name); + for (i = 0; lb_list[i].name[0]; i++) { + + if (!getcfg_topgroup() || strieq(getcfg_topgroup(), lb_list[i].top_group)) { + + rsprintf("\n", i, i); + rsprintf("
\n", i, lb_list[i].name); + } } + + if (i > 2) { + rsprintf("\n"); + + rsprintf("\n", loc("Set all")); + rsprintf("\n", loc("Set none")); + } + + rsprintf("\n"); } - if (i > 2) { - rsprintf("\n"); - - rsprintf("\n", loc("Set all")); - rsprintf("\n", loc("Set none")); - } - - rsprintf("\n"); - rsprintf("%s:\n", loc("Password")); rsprintf("\n");