mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:06:50 +00:00
Show logbooks to subscribe on new user page only if number of logbooks is less than 11, otherwise browser URL might become too long
SVN revision: 1909
This commit is contained in:
parent
4da8549e19
commit
18c31159ba
@ -12758,6 +12758,12 @@ void show_new_user_page(LOGBOOK * lbs)
|
|||||||
rsprintf("<tr><td nowrap>Email:</td>\n");
|
rsprintf("<tr><td nowrap>Email:</td>\n");
|
||||||
rsprintf("<td colspan=2><input type=text size=40 name=new_user_email></tr>\n");
|
rsprintf("<td colspan=2><input type=text size=40 name=new_user_email></tr>\n");
|
||||||
|
|
||||||
|
/* count logbooks */
|
||||||
|
for (i = 0; lb_list[i].name[0]; i++);
|
||||||
|
|
||||||
|
/* only show subscriptions if less than 10, otherwise browser URL might become too long */
|
||||||
|
if (i <= 10) {
|
||||||
|
|
||||||
rsprintf("<tr><td nowrap>%s:\n", loc("Subscribe to logbooks"));
|
rsprintf("<tr><td nowrap>%s:\n", loc("Subscribe to logbooks"));
|
||||||
|
|
||||||
rsprintf("<br><span class=\"selcomment\"><b>(%s)</b></span>\n",
|
rsprintf("<br><span class=\"selcomment\"><b>(%s)</b></span>\n",
|
||||||
@ -12801,6 +12807,7 @@ void show_new_user_page(LOGBOOK * lbs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
rsprintf("</td></tr>\n");
|
rsprintf("</td></tr>\n");
|
||||||
|
}
|
||||||
|
|
||||||
rsprintf("<tr><td nowrap>%s:</td>\n", loc("Password"));
|
rsprintf("<tr><td nowrap>%s:</td>\n", loc("Password"));
|
||||||
rsprintf("<td colspan=2><input type=password size=40 name=newpwd>\n");
|
rsprintf("<td colspan=2><input type=password size=40 name=newpwd>\n");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user