* Restored the original date/time display behavior by replacing DATESTR template...
authorArt Cancro <ajc@citadel.org>
Tue, 6 Jan 2009 04:14:37 +0000 (04:14 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 6 Jan 2009 04:14:37 +0000 (04:14 +0000)
webcit/msg_renderers.c
webcit/static/t/section_mailsummary.html
webcit/static/t/section_mailsummary_m.html
webcit/static/t/view_message.html
webcit/static/t/view_message_print.html
webcit/static/t/view_message_replyquote.html

index 6ac25d56af629fd33fd4155bf74e1c6fec5b0da7..a124070568399b7903a09abd1cc4a1a81503f6df 100644 (file)
@@ -410,13 +410,20 @@ void examine_time(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset)
 {
        Msg->date = StrTol(HdrLine);
 }
-void tmplput_MAIL_SUMM_DATE_STR(StrBuf *Target, int nArgs, WCTemplateToken *Tokens, void *Context, int ContextType)
+void tmplput_MAIL_SUMM_DATE_BRIEF(StrBuf *Target, int nArgs, WCTemplateToken *Tokens, void *Context, int ContextType)
 {
        char datebuf[64];
        message_summary *Msg = (message_summary*) Context;
        webcit_fmt_date(datebuf, Msg->date, 1);
        StrBufAppendBufPlain(Target, datebuf, -1, 0);
 }
+void tmplput_MAIL_SUMM_DATE_FULL(StrBuf *Target, int nArgs, WCTemplateToken *Tokens, void *Context, int ContextType)
+{
+       char datebuf[64];
+       message_summary *Msg = (message_summary*) Context;
+       webcit_fmt_date(datebuf, Msg->date, 0);
+       StrBufAppendBufPlain(Target, datebuf, -1, 0);
+}
 void tmplput_MAIL_SUMM_DATE_NO(StrBuf *Target, int nArgs, WCTemplateToken *Tokens, void *Context, int ContextType)
 {
        message_summary *Msg = (message_summary*) Context;
@@ -1070,7 +1077,8 @@ InitModule_MSGRENDERERS
                         NULL,NULL, CTX_MAILSUM, CTX_NONE, IT_NOFLAG);
 
        /* render parts of the message struct */
-       RegisterNamespace("MAIL:SUMM:DATESTR", 0, 0, tmplput_MAIL_SUMM_DATE_STR, CTX_MAILSUM);
+       RegisterNamespace("MAIL:SUMM:DATEBRIEF", 0, 0, tmplput_MAIL_SUMM_DATE_BRIEF, CTX_MAILSUM);
+       RegisterNamespace("MAIL:SUMM:DATEFULL", 0, 0, tmplput_MAIL_SUMM_DATE_FULL, CTX_MAILSUM);
        RegisterNamespace("MAIL:SUMM:DATENO",  0, 0, tmplput_MAIL_SUMM_DATE_NO,  CTX_MAILSUM);
        RegisterNamespace("MAIL:SUMM:N",       0, 0, tmplput_MAIL_SUMM_N,        CTX_MAILSUM);
        RegisterNamespace("MAIL:SUMM:FROM",    0, 2, tmplput_MAIL_SUMM_FROM,     CTX_MAILSUM);
index 15e0fef879014044a63a7cfcc82752eee2476741..31d78df07a7f3abdf46abb38d91fe23d39332e4f 100644 (file)
@@ -1,5 +1,5 @@
 <tr id="m<?MAIL:SUMM:N>" style="font-weight:<?%("COND:MAIL:SUMM:UNREAD", 1, 0, 0, "bold", "normal")>" onMouseDown="CtdlMoveMsgMouseDown(event,<?MAIL:SUMM:N>)">
 <td width=50%><?MAIL:SUMM:SUBJECT("X")></td>
 <td width=30%><?MAIL:SUMM:FROM("X")></td>
-<td width=20%><?MAIL:SUMM:DATESTR></td>
+<td width=20%><?MAIL:SUMM:DATEBRIEF></td>
 </tr>
index 8b96757ce98d55abea62dd7ea525c1e0b5da5a75..350954e979ab0a2ebf31ae1788c20a1a0d1cbb04 100644 (file)
@@ -1,5 +1,5 @@
 <div><div id="m<?MAIL:SUMM:N>" style="font-weight:<?%("COND:MAIL:SUMM:UNREAD", 1, 0, 0, "bold", "normal")>;" onClick="CtdlLoadMsgMouseDown(event,<?MAIL:SUMM:N>)">
 <span class="from"><?MAIL:SUMM:FROM("X")></span>
-<span style="float: right;"><?MAIL:SUMM:DATESTR></span><br/>
+<span style="float: right;"><?MAIL:SUMM:DATEBRIEF></span><br/>
 <span class="subject"><?MAIL:SUMM:SUBJECT("X")></span>
 </div><div id="m_<?MAIL:SUMM:N>" class="msgview" onMouseDown=""></div></div>
index e384c0aa2ce081642078f05d435370935d20d4ab..aef8a329e25d041be74bc5d278a8ef51cdbda570 100644 (file)
@@ -3,7 +3,7 @@ onMouseOver=document.getElementById("msg<?MAIL:SUMM:N>").style.visibility="visib
 onMouseOut=document.getElementById("msg<?MAIL:SUMM:N>").style.visibility="hidden" >
 
 <div class="message_header">
- <span><?MAIL:SUMM:DATESTR></span>
+ <span><?MAIL:SUMM:DATEFULL></span>
  <?_("from ")>
  <??("COND:MAIL:ANON",1)>
 <?!("COND:MAIL:SUMM:RFCA", 2)><a href="showuser?who=<?MAIL:SUMM:FROM("Q")>">"<?MAIL:SUMM:FROM("X")>"&lt;<?MAIL:SUMM:RFCA>&gt;</a><?!("X", 2)>
index f6de22605784d8b627746c9020d4326b8ec1dc96..8051c8b3f979009bdd988415795b1a6abcb2a46f 100644 (file)
@@ -3,7 +3,7 @@
 </title></head>
 <body onLoad=" window.print(); window.close(); ">
 <div class="fix_scrollbar_bug message"
-<div class="message_header"><span><?MAIL:SUMM:DATESTR></span>
+<div class="message_header"><span><?MAIL:SUMM:DATEFULL></span>
 <?_("from ")>
 <?MAIL:SUMM:FROM("X")><??("X", 1)>
 <?!("COND:MAIL:ANON",2)>***<??("X", 2)>
index 56ee8bb7fdfb3bf2a9c726ea0e4fb5d9df41e92a..452dc8c7cf2dcc9345ee08818b36efff4b1a234d 100644 (file)
@@ -1,6 +1,6 @@
 <blockquote>
   <div class="message_header">
-    <span><?MAIL:SUMM:DATESTR></span>
+    <span><?MAIL:SUMM:DATEFULL></span>
     <span><?_("from ")>
       <??("COND:MAIL:ANON",1)><?MAIL:SUMM:FROM("X")> &lt;<?MAIL:SUMM:RFCA("X")>&gt;<??("X", 1)>
       <?!("COND:MAIL:ANON",2)>***<??("X", 2)>