Colored left-borders on blockquotes for the win
authorArt Cancro <ajc@citadel.org>
Sat, 19 Nov 2022 21:07:22 +0000 (16:07 -0500)
committerArt Cancro <ajc@citadel.org>
Sat, 19 Nov 2022 21:07:22 +0000 (16:07 -0500)
textclient/.citadel.c.swp [new file with mode: 0644]
webcit-ng/static/css/webcit.css
webcit-ng/static/js/view_mail.js

diff --git a/textclient/.citadel.c.swp b/textclient/.citadel.c.swp
new file mode 100644 (file)
index 0000000..027565a
Binary files /dev/null and b/textclient/.citadel.c.swp differ
index 122f3df79f72e424c9f5c9f1088267d85732b2f0..4cdaf2b819d7d1b51acfc3646f859a232cee3630 100644 (file)
@@ -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 {
index be4c1f97abf3ddcae66ea821230a6846a836e07f..8f325bcde79980ed332158135ea3e82ed540ea2a 100644 (file)
@@ -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;