]> code.citadel.org Git - citadel.git/commitdiff
* Determined where to insert a "Forward" button and the functionality it
authorArt Cancro <ajc@citadel.org>
Sat, 10 Sep 2005 03:23:05 +0000 (03:23 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 10 Sep 2005 03:23:05 +0000 (03:23 +0000)
  implements.  In order to complete this function we will need a
  form-sanitized output mode for read_message().

webcit/ChangeLog
webcit/messages.c

index e98bc70dabaf02b066b57a65a96a7be3da3a6ddf..7e417e8639d34114198219a098a3faee7557bca3 100644 (file)
@@ -1,10 +1,12 @@
 $Log$
+Revision 621.37  2005/09/10 03:23:05  ajc
+* Determined where to insert a "Forward" button and the functionality it
+  implements.  In order to complete this function we will need a
+  form-sanitized output mode for read_message().
+
 Revision 621.36  2005/09/09 19:47:29  ajc
 * Removed some dead code
 
-Revision 621.35  2005/09/09 04:43:37  ajc
-*** empty log message ***
-
 Revision 621.34  2005/09/09 04:43:22  ajc
 * Checked in a copy of the "script.aculo.us" library by Thomas Fuchs.
   NOTE: I had to search-and-replace "Effect" to "ScriptaculousEffect" in
@@ -2932,4 +2934,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index 38be780a4d504ca8e017ab32d6656d07dfeae6f6..47aca43d3dd40e96e55de7eb3c4490636bf2d4de 100644 (file)
@@ -464,8 +464,6 @@ void display_vcard(char *vcard_source, char alpha, int full, char *storename) {
 }
 
 
-
-
 /*
  * I wanna SEE that message!
  */
@@ -687,6 +685,15 @@ void read_message(long msgnum, int suppress_buttons) {
                urlescputs(m_subject);
                wprintf("\">[%s]</a> ", _("Reply"));
 
+               /* Forward (FIXME do this)
+               if (WC->wc_view == VIEW_MAILBOX) {
+                       wprintf("<a href=\"/display_enter?pullquote=%ld?subject=", msgnum);
+                       if (strncasecmp(m_subject, "Fwd:", 4)) wprintf("Fwd:%20");
+                       urlescputs(m_subject);
+                       wprintf("\">[%s]</a> ", _("Forward"));
+               }
+               */
+
                if (WC->is_room_aide)  {
                        /* Move */
                        wprintf("<a href=\"/confirm_move_msg?msgid=%ld\">[%s]</a> ",
@@ -2056,7 +2063,7 @@ void display_enter(void)
 
 
        wprintf(
-       "<style> div.auto_complete { width: 350px; background: #fff; } div.auto_complete ul { border:1px solid #888; margin:0; padding:0; width:100%; list-style-type:none; } div.auto_complete ul li { margin:0; padding:3px; } div.auto_complete ul li.selected { background-color: #ffb; } div.auto_complete ul strong.highlight { color: #800; margin:0; padding:0; } </style> \n "
+       "<style> div.auto_complete { width: 350px; background: #fff; } div.auto_complete ul { border:1px solid #888; margin:0; padding:0; width:100%; list-style-type:none; } div.auto_complete ul li { margin:0; padding:3px; } div.auto_complete ul li.selected { background-color: #ffc; } div.auto_complete ul strong.highlight { color: #800; margin:0; padding:0; } </style> \n "
        );
 
        wprintf("<form enctype=\"multipart/form-data\" "
@@ -2127,6 +2134,9 @@ void display_enter(void)
                "<script type=\"text/javascript\"> \n"
                "writeRichText('msgtext', '");
        msgescputs(bstr("msgtext"));
+       if (atol(bstr("pullquote")) > 0L) {
+               wprintf("FIXME pullquote=%s", bstr("pullquote"));
+       }
        wprintf("', '96%%', '200', true, false); \n"
                "</script></center><br />\n");