]> code.citadel.org Git - citadel.git/commitdiff
* messages.c, webcit.css: message buttons (Reply, ReplyQuoted, etc.) are now
authorArt Cancro <ajc@citadel.org>
Tue, 22 Nov 2005 03:48:57 +0000 (03:48 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 22 Nov 2005 03:48:57 +0000 (03:48 +0000)
  in a smaller font (new style 'msgbuttons' defined in the stylesheet)
* Reply and ReplyQuoted no longer generate an empty 'Re:' subject if the
  message being replied to has no subject.

webcit/ChangeLog
webcit/messages.c
webcit/static/webcit.css

index 67e7fbd24017df1840e23974097769cb2d3b23cf..14f774848166e056a9a817ac11999a11dff1e06c 100644 (file)
@@ -1,5 +1,11 @@
 $Id$
 
+Mon Nov 21 22:47:17 EST 2005 ajc
+* messages.c, webcit.css: message buttons (Reply, ReplyQuoted, etc.) are now
+  in a smaller font (new style "msgbuttons" defined in the stylesheet)
+* Reply and ReplyQuoted no longer generate an empty "Re:" subject if the
+  message being replied to has no subject.
+
 Mon Nov 21 22:30:31 EST 2005 ajc
 * create-pot.sh: now creates a new webcit.pot file and automatically merges
   it into all *.po files, allowing an easy way for translators to access
index 901a3ef16b2646529105dd1395e323be08fa0e95..2f439c7dd81a154e579b4c0f4ca9b44908dd99cb 100644 (file)
@@ -741,7 +741,7 @@ void read_message(long msgnum, int printable_view, char *section) {
 
        /* start msg buttons */
        if (!printable_view) {
-               wprintf("<td align=right>\n");
+               wprintf("<td align=right><span class=\"msgbuttons\">\n");
 
                /* Reply */
                if ( (WC->wc_view == VIEW_MAILBOX) || (WC->wc_view == VIEW_BBS) ) {
@@ -751,9 +751,11 @@ void read_message(long msgnum, int printable_view, char *section) {
                        }
                        wprintf("?recp=");
                        urlescputs(reply_to);
-                       wprintf("?subject=");
-                       if (strncasecmp(m_subject, "Re:", 3)) wprintf("Re:%20");
-                       urlescputs(m_subject);
+                       if (strlen(m_subject) > 0) {
+                               wprintf("?subject=");
+                               if (strncasecmp(m_subject, "Re:", 3)) wprintf("Re:%20");
+                               urlescputs(m_subject);
+                       }
                        wprintf("\">[%s]</a> ", _("Reply"));
                }
 
@@ -764,9 +766,11 @@ void read_message(long msgnum, int printable_view, char *section) {
                                wprintf("?replyquote=%ld", msgnum);
                                wprintf("?recp=");
                                urlescputs(reply_to);
-                               wprintf("?subject=");
-                               if (strncasecmp(m_subject, "Re:", 3)) wprintf("Re:%20");
-                               urlescputs(m_subject);
+                               if (strlen(m_subject) > 0) {
+                                       wprintf("?subject=");
+                                       if (strncasecmp(m_subject, "Re:", 3)) wprintf("Re:%20");
+                                       urlescputs(m_subject);
+                               }
                                wprintf("\">[%s]</a> ", _("ReplyQuoted"));
                        }
                }
@@ -811,7 +815,7 @@ void read_message(long msgnum, int printable_view, char *section) {
                wprintf("<a href=\"#\" onClick=\"window.open('printmsg/%ld', 'print%ld', 'toolbar=no,location=no,directories=no,copyhistory=no,status=yes,scrollbars=yes,resizable=yes,width=600,height=400'); \" >"
                        "[%s]</a>", msgnum, msgnum, _("Print"));
 
-               wprintf("</td>");
+               wprintf("</span></td>");
        }
 
        wprintf("</TR></TABLE>\n");
index dc605a9d63c6331b4c824adf220f7f02997f2a48..b5dd545e47ae2cbb19346a63c7ded505faf37ba2 100644 (file)
@@ -325,6 +325,10 @@ a:hover {
        background-color: #FF0000;
 }
 
+.msgbuttons {
+       font-size: 7pt;
+}
+
 .roomlist_floor {
        font-size: 12pt;
        font-weight: bold;