diff --git a/NT/elog.vcproj b/NT/elog.vcproj index 9240375b..666f8184 100755 --- a/NT/elog.vcproj +++ b/NT/elog.vcproj @@ -131,7 +131,8 @@ + + + + + + diff --git a/NT/elogd.vcproj b/NT/elogd.vcproj index c3629cf8..095d7ab7 100755 --- a/NT/elogd.vcproj +++ b/NT/elogd.vcproj @@ -43,7 +43,7 @@ name, str, attachment[i] + 14); + url_encode(ref, sizeof(ref)); /* for file names with special characters like "+" */ + + rsprintf("", ref); + rsprintf("\"%s\"", + attachment[i]+14, attachment[i]+14); + } + if (highlight != message_id) rsprintf("\n"); else @@ -16832,10 +16846,27 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode, int exp strencode_nouml(str); else rsputs(" "); + rsputs("\n"); + } - if (strieq(mode, "Threaded")) - rsprintf("\n"); + if (strieq(mode, "Summary")) { + /* show attachment icons */ + rsputs(" "); + + for (i = 0; i < MAX_ATTACHMENTS; i++) + if (attachment[i][0]) { + strlcpy(str, attachment[i], sizeof(str)); + str[13] = 0; + sprintf(ref, "../%s/%s/%s", lbs->name, str, attachment[i] + 14); + url_encode(ref, sizeof(ref)); /* for file names with special characters like "+" */ + + rsprintf("", ref); + rsprintf("\"%s\"", + attachment[i]+14, attachment[i]+14); + } + + rsputs(" "); } colspan = n_attr_disp; @@ -19877,6 +19908,11 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa if (!strieq(mode, "Full") && n_line > 0 && show_text) rsprintf("%s\n", loc("Text")); + if (strieq(mode, "Summary")) { + rsprintf("\"%s\"", + loc("Attachments"), loc("Attachments")); + } + rsprintf("\n\n"); } } /* if (!csv && !xml) */ diff --git a/themes/default/default.css b/themes/default/default.css index 768a0105..2daeaac7 100755 --- a/themes/default/default.css +++ b/themes/default/default.css @@ -313,6 +313,14 @@ td { font-weight:bold; } +.listatt { + border:1px solid #808040; + border-top:1px solid white; + border-left:1px solid white; + background-color:#B0FFB0; + text-align:center; +} + /* attachment line */ .attachment {