mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Implemented 'Hide comments'
SVN revision: 2182
This commit is contained in:
parent
98115c1a8c
commit
5224b4e18b
20
src/elogd.c
20
src/elogd.c
@ -24762,14 +24762,18 @@ 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");
|
||||||
str[0] = 0;
|
|
||||||
getcfg(lb_list[index].name, "Comment", str, sizeof(str));
|
if (!getcfg(plb->name, "Hide Comments", str, sizeof(str)) || atoi(str) == 0) {
|
||||||
rsprintf("<span class=\"selcomment\">");
|
str[0] = 0;
|
||||||
if (is_html(str))
|
getcfg(lb_list[index].name, "Comment", str, sizeof(str));
|
||||||
rsputs(str);
|
rsprintf("<span class=\"selcomment\">");
|
||||||
else
|
if (is_html(str))
|
||||||
rsputs3(str);
|
rsputs(str);
|
||||||
rsprintf("</span></td>\n");
|
else
|
||||||
|
rsputs3(str);
|
||||||
|
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");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user