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

@ -231,13 +231,6 @@ Welcome title = <img src="welcome.jpg"><p><font size=5 color=whit
template, the standard selection page produced by template, the standard selection page produced by
<code><b>elogd</b></code> can be used. <code><b>elogd</b></code> can be used.
</li> </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> <li>
<b><code>Guest Selection page = &lt;file&gt;</code></b><br> <b><code>Guest Selection page = &lt;file&gt;</code></b><br>
The same for installations which have a global password file. This The same for installations which have a global password file. This

View File

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