Implemented 'Hide comments'

SVN revision: 2182
This commit is contained in:
Stefan Ritt 2009-03-24 10:43:15 +00:00
parent 98115c1a8c
commit 5224b4e18b

View File

@ -24762,6 +24762,8 @@ void show_logbook_node(LBLIST plb, LBLIST pparent, int level, int btop)
loc("This logbook requires authentication"), loc("This logbook requires authentication"),
loc("This logbook requires authentication")); loc("This logbook requires authentication"));
rsprintf("<br>\n"); rsprintf("<br>\n");
if (!getcfg(plb->name, "Hide Comments", str, sizeof(str)) || atoi(str) == 0) {
str[0] = 0; str[0] = 0;
getcfg(lb_list[index].name, "Comment", str, sizeof(str)); getcfg(lb_list[index].name, "Comment", str, sizeof(str));
rsprintf("<span class=\"selcomment\">"); rsprintf("<span class=\"selcomment\">");
@ -24770,6 +24772,8 @@ void show_logbook_node(LBLIST plb, LBLIST pparent, int level, int btop)
else else
rsputs3(str); rsputs3(str);
rsprintf("</span></td>\n"); rsprintf("</span></td>\n");
}
rsprintf("<td nowrap class=\"selentries\">"); rsprintf("<td nowrap class=\"selentries\">");
rsprintf("%d", *lb_list[index].n_el_index); rsprintf("%d", *lb_list[index].n_el_index);
rsprintf("</td>\n"); rsprintf("</td>\n");