This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit dd7174dffb8b788169673bb2c25a08e0c3b74ee4 Author: Daniel Gruno <[email protected]> AuthorDate: Mon Nov 15 18:45:15 2021 +0100 add a finder link for parent threads --- webui/js/source/construct-thread.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webui/js/source/construct-thread.js b/webui/js/source/construct-thread.js index 972d083..14a7265 100644 --- a/webui/js/source/construct-thread.js +++ b/webui/js/source/construct-thread.js @@ -134,6 +134,14 @@ function construct_single_thread(state, json) { } } + // Not top level thread? + if (json.thread['in-reply-to'] && json.thread['in-reply-to'].length > 0) { + let notice = new HTML("span", {style: {color: "saddlebrown"}}, "This email appears to be a reply to another email. If you wish to attempt finding the root thread, click here: "); + let a = new HTML("a", {href: "javascript:void(location.href += '&find_parent=true');"}, "Find parent email"); + div.inject(notice); + div.inject(a); + } + if (chatty_layout) { let listname = json.thread.list_raw.replace(/[<>]/g, '').replace('.', '@', 1); div.setAttribute("class", "email_placeholder_chatty");
