From: Art Cancro Date: Sat, 19 Nov 2022 21:07:22 +0000 (-0500) Subject: Colored left-borders on blockquotes for the win X-Git-Tag: v960~18 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=f45364a96d0b8cc0878373c60e4874457c7b6184 Colored left-borders on blockquotes for the win --- diff --git a/textclient/.citadel.c.swp b/textclient/.citadel.c.swp new file mode 100644 index 000000000..027565afd Binary files /dev/null and b/textclient/.citadel.c.swp differ diff --git a/webcit-ng/static/css/webcit.css b/webcit-ng/static/css/webcit.css index 122f3df79..4cdaf2b81 100644 --- a/webcit-ng/static/css/webcit.css +++ b/webcit-ng/static/css/webcit.css @@ -296,29 +296,35 @@ html,body,h1,h2,h3,h4,h5 { blockquote { background-color: #f5f5f5 !important; color: Navy !important; + border-left: 2px solid Navy; margin-bottom: 0px; padding-bottom: 0px; margin-left: 1em; + padding-left: 1em; } blockquote blockquote { background-color: #ebebeb !important; color: Maroon !important; + border-left: 2px solid Maroon; } blockquote blockquote blockquote { background-color: #e1e1e1 !important; color: Green !important; + border-left: 2px solid Green; } blockquote blockquote blockquote blockquote { background-color: #d7d7d7 !important; color: Purple !important; + border-left: 2px solid Purple; } blockquote blockquote blockquote blockquote blockquote { background-color: #cdcdcd !important; color: Teal !important; + border-left: 2px solid Teal; } blockquote pre { diff --git a/webcit-ng/static/js/view_mail.js b/webcit-ng/static/js/view_mail.js index be4c1f97a..8f325bcde 100644 --- a/webcit-ng/static/js/view_mail.js +++ b/webcit-ng/static/js/view_mail.js @@ -10,7 +10,7 @@ var selected_message = 0; // Remember the last message that was selected var RefreshMailboxInterval; // We store our refresh timer here -// Render reply address for a message (FIXME we might want to figure out in-reply-to) +// Render reply address for a message (FIXME figure out how to deal with "reply-to:") function reply_addr(msg) { //if (msg.locl) { //return([msg.from]); @@ -360,6 +360,8 @@ function mail_compose(is_quoted, references, quoted_msgnum, m_to, m_cc, m_subjec } +// Called when the user clicks the button to make the hidden "CC" and "BCC" lines appear. +// It is also called automatically during a Reply when CC is pre-populated. function make_cc_bcc_visible() { document.getElementById("ctdl-cc-bcc-buttons").style.display = "none"; document.getElementById("ctdl-compose-bcc-label").style.display = "block"; @@ -370,7 +372,7 @@ function make_cc_bcc_visible() { // Helper function for mail_send_messages() to extract and decode metadata values. function msm_field(element_name, separator) { let s1 = document.getElementById(element_name).innerHTML; - let s2 = s1.replaceAll("|",separator); // Replace "|" with "!" because "|" is a field separator in Citadel wire protocol + let s2 = s1.replaceAll("|",separator); // Replace "|" with "!" because "|" is a field separator in Citadel wire protocol let s3 = decodeURI(s2); let s4 = document.createElement("textarea"); // This One Weird Trick Unescapes All HTML Entities s4.innerHTML = s3;