diff --git a/src/elogd.c b/src/elogd.c index 0ba66dd8..e9bc8e0d 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.272 2004/02/27 08:10:40 midas + Added 'edit' and 'delete' to 'list display' + Revision 1.271 2004/02/26 21:06:32 midas Added CVS import page @@ -7208,8 +7211,6 @@ void show_find_form(LOGBOOK * lbs) rsprintf("\n", loc("Display comma-separated values (CSV)")); - rsprintf("\n", loc("CSV Import")); - rsprintf("\n"); rsprintf("%s:
", loc("Options")); @@ -8515,7 +8516,7 @@ void show_elog_delete(LOGBOOK * lbs, int message_id) loc("and all their replies")); } else { - rsprintf("%s\n", loc("Are you sure to delete this message?")); + rsprintf("%s\n", loc("Are you sure to delete this entry?")); /* check for replies */ @@ -10336,6 +10337,7 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode, rsprintf(" "); skip_comma = TRUE; + } else { rsprintf("", sclass); @@ -10361,6 +10363,20 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode, nowrap, ref, lbs->name); } + if (strieq(disp_attr[index], loc("Edit"))) { + if (!strieq(mode, "Threaded")) { + rsprintf("", sclass, nowrap, ref); + rsprintf("\"%s\"\n", loc("Edit entry")); + } + } + + if (strieq(disp_attr[index], loc("Delete"))) { + if (!strieq(mode, "Threaded")) { + rsprintf("", sclass, nowrap, ref); + rsprintf("\"%s\"\n", loc("Delete entry")); + } + } + if (strieq(disp_attr[index], loc("Date"))) { if (!getcfg(lbs->name, "Time format", format)) strcpy(format, DEFAULT_TIME_FORMAT);