%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("