mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Display current entry in thread bold
SVN revision: 1178
This commit is contained in:
parent
c4ce7f587d
commit
0b128e4550
42
src/elogd.c
42
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.540 2005/01/21 20:17:20 ritt
|
||||||
|
Display current entry in thread bold
|
||||||
|
|
||||||
Revision 1.539 2005/01/19 21:08:32 midas
|
Revision 1.539 2005/01/19 21:08:32 midas
|
||||||
Display thread in single entry page if present
|
Display thread in single entry page if present
|
||||||
|
|
||||||
@ -13246,20 +13249,25 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode,
|
|||||||
attr_icon[0] = 0;
|
attr_icon[0] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (highlight != message_id)
|
||||||
|
rsprintf("<a href=\"%s\">", ref);
|
||||||
|
|
||||||
if (attr_icon[0])
|
if (attr_icon[0])
|
||||||
rsprintf("<a href=\"%s\"><img border=0 src=\"icons/%s\"></a> ", ref, attr_icon);
|
rsprintf("<img border=0 src=\"icons/%s\"></a> ", attr_icon);
|
||||||
else {
|
else {
|
||||||
/* if top level only, display reply icon if message has a reply */
|
/* if top level only, display reply icon if message has a reply */
|
||||||
if (getcfg(lbs->name, "Top level only", str, sizeof(str)) && atoi(str) == 1 && reply_to[0])
|
if (getcfg(lbs->name, "Top level only", str, sizeof(str)) && atoi(str) == 1 && reply_to[0])
|
||||||
rsprintf("<a href=\"%s\"><img border=0 src=\"reply.gif\"></a> ", ref);
|
rsprintf("<img border=0 src=\"reply.gif\"> ");
|
||||||
else {
|
else {
|
||||||
/* display standard icons */
|
/* display standard icons */
|
||||||
if (level == 0)
|
if (level == 0)
|
||||||
rsprintf("<a href=\"%s\"><img border=0 src=\"entry.gif\"></a> ", ref);
|
rsprintf("<img border=0 src=\"entry.gif\"> ");
|
||||||
else
|
else
|
||||||
rsprintf("<a href=\"%s\"><img border=0 src=\"reply.gif\"></a> ", ref);
|
rsprintf("<img border=0 src=\"reply.gif\"> ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (highlight != message_id)
|
||||||
|
rsprintf("</a>");
|
||||||
|
|
||||||
j = build_subst_list(lbs, (char (*)[NAME_LENGTH]) slist, (char (*)[NAME_LENGTH]) svalue, attrib, TRUE);
|
j = build_subst_list(lbs, (char (*)[NAME_LENGTH]) slist, (char (*)[NAME_LENGTH]) svalue, attrib, TRUE);
|
||||||
sprintf(str, "%d", message_id);
|
sprintf(str, "%d", message_id);
|
||||||
@ -13269,14 +13277,20 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode,
|
|||||||
|
|
||||||
strsubst(display, (char (*)[NAME_LENGTH]) slist, (char (*)[NAME_LENGTH]) svalue, j);
|
strsubst(display, (char (*)[NAME_LENGTH]) slist, (char (*)[NAME_LENGTH]) svalue, j);
|
||||||
|
|
||||||
rsprintf("<a href=\"%s\">", ref);
|
if (highlight != message_id)
|
||||||
|
rsprintf("<a href=\"%s\">", ref);
|
||||||
|
else
|
||||||
|
rsprintf("<b>");
|
||||||
|
|
||||||
if (is_html(display))
|
if (is_html(display))
|
||||||
rsputs(display);
|
rsputs(display);
|
||||||
else
|
else
|
||||||
rsputs2(display);
|
rsputs2(display);
|
||||||
|
|
||||||
rsprintf("</a>\n");
|
if (highlight != message_id)
|
||||||
|
rsprintf("</a>", ref);
|
||||||
|
else
|
||||||
|
rsprintf("</b>");
|
||||||
} else {
|
} else {
|
||||||
/* show select box */
|
/* show select box */
|
||||||
if (select && !strieq(mode, "Threaded")) {
|
if (select && !strieq(mode, "Threaded")) {
|
||||||
@ -13290,8 +13304,12 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode,
|
|||||||
rsprintf("</td>\n");
|
rsprintf("</td>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strieq(mode, "Threaded"))
|
if (strieq(mode, "Threaded")) {
|
||||||
rsprintf("<a href=\"%s\">", ref);
|
if (highlight != message_id)
|
||||||
|
rsprintf("<a href=\"%s\">", ref);
|
||||||
|
else
|
||||||
|
rsprintf("<b>");
|
||||||
|
}
|
||||||
|
|
||||||
for (index = 0; index < n_attr_disp; index++) {
|
for (index = 0; index < n_attr_disp; index++) {
|
||||||
if (strieq(disp_attr[index], loc("ID"))) {
|
if (strieq(disp_attr[index], loc("ID"))) {
|
||||||
@ -13479,8 +13497,12 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strieq(mode, "Threaded"))
|
if (strieq(mode, "Threaded")) {
|
||||||
rsprintf("</a>\n");
|
if (highlight != message_id)
|
||||||
|
rsprintf("</a>");
|
||||||
|
else
|
||||||
|
rsprintf("</b>");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strieq(mode, "Threaded") && expand > 1 && show_text) {
|
if (strieq(mode, "Threaded") && expand > 1 && show_text) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user