diff --git a/src/elogd.c b/src/elogd.c index 37ad3d8c..570f3bb3 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $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 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; } - if (attr_icon[0]) - rsprintf(" ", ref, attr_icon); + if (highlight != message_id) + rsprintf("", ref); + + if (attr_icon[0]) + rsprintf(" ", attr_icon); else { /* 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]) - rsprintf(" ", ref); + rsprintf(" "); else { /* display standard icons */ if (level == 0) - rsprintf(" ", ref); + rsprintf(" "); else - rsprintf(" ", ref); + rsprintf(" "); } } + if (highlight != message_id) + rsprintf(""); j = build_subst_list(lbs, (char (*)[NAME_LENGTH]) slist, (char (*)[NAME_LENGTH]) svalue, attrib, TRUE); 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); - rsprintf("", ref); + if (highlight != message_id) + rsprintf("", ref); + else + rsprintf(""); if (is_html(display)) rsputs(display); else rsputs2(display); - rsprintf("\n"); + if (highlight != message_id) + rsprintf("", ref); + else + rsprintf(""); } else { /* show select box */ if (select && !strieq(mode, "Threaded")) { @@ -13290,8 +13304,12 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode, rsprintf("\n"); } - if (strieq(mode, "Threaded")) - rsprintf("", ref); + if (strieq(mode, "Threaded")) { + if (highlight != message_id) + rsprintf("", ref); + else + rsprintf(""); + } for (index = 0; index < n_attr_disp; index++) { 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")) - rsprintf("\n"); + if (strieq(mode, "Threaded")) { + if (highlight != message_id) + rsprintf(""); + else + rsprintf(""); + } } if (strieq(mode, "Threaded") && expand > 1 && show_text) {