removed "Subscription columns" from config and source and replaced by automatic column spread.

This commit is contained in:
Luedeke Andreas 2018-09-27 13:53:34 +02:00
parent cd14db2067
commit ee7bc3873d
2 changed files with 3 additions and 12 deletions

View File

@ -232,13 +232,6 @@ Welcome title = <img src="welcome.jpg"><p><font size=5 color=whit
<code><b>elogd</b></code> can be used.
</li>
<li>
<b><code>Subscription columns = &lt;number&gt;</code></b><br>
The config page shows a list of all logbooks one can subscribe to.
When the list is very long it might be recommended to organize it in
columns. This option allows to specify the numbers of columns to use
(default is 1 column: a simple list).
</li>
<li>
<b><code>Guest Selection page = &lt;file&gt;</code></b><br>
The same for installations which have a global password file. This
means that the logbook selection page is also password protected. It

View File

@ -13973,11 +13973,9 @@ void show_config_page(LOGBOOK * lbs)
}
if (n > 0) {
if (getcfg(lbs->name, "Subscription columns", str, sizeof(str)))
cols = atoi(str);
else
cols = 1;
for (i = 0; lb_list[i].name[0]; i++) {}
j = (int) (i / 16) + 1;
cols = ((j>5)?5:j);
rsprintf("<tr><td width=\"15%%\">%s:\n", loc("Subscribe to logbooks"));
rsprintf("<br><span class=\"selcomment\"><b>(%s)</b></span>\n",