Improvements to message info display in dimp preview
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Jun 2009 04:16:11 +0000 (22:16 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Jun 2009 04:44:37 +0000 (22:44 -0600)
imp/js/src/DimpBase.js
imp/lib/Views/ShowMessage.php
imp/templates/index/index-dimp.inc
imp/themes/screen-dimp.css

index 0406997..cc8fba1 100644 (file)
@@ -1030,10 +1030,10 @@ var DimpBase = {
             }
 
             log.each(function(entry) {
-                tmp += '<tr><td>' + entry + '</td></tr>';
+                tmp += '<li><span class="iconImg imp-' + entry.t + '"></span>' + entry.m + '</li>';
             });
 
-            $('infolist').down('TABLE').update(tmp);
+            $('infolist').down('UL').update(tmp);
         }
 
         if (opts) {
index 67ce70b..de09128 100644 (file)
@@ -76,6 +76,7 @@ class IMP_Views_ShowMessage
      * 'fulldate' - The fully formatted date
      * 'js' - Javascript code to run on display (only if the previewview
      *        hook is active)
+     * 'log' - Log information
      * 'minidate' - A miniature date
      *
      * FOR NON-PREVIEW MODE:
@@ -198,7 +199,10 @@ class IMP_Views_ShowMessage
             /* Grab maillog information. */
             if (!empty($GLOBALS['conf']['maillog']['use_maillog'])) {
                 foreach (IMP_Maillog::parseLog($envelope['message-id']) as $val) {
-                    $result['log'][] = htmlspecialchars($val['msg']);
+                    $result['log'][] = array_map('htmlspecialchars', array(
+                        'm' => $val['msg'],
+                        't' => $val['action']
+                    ));
                 }
             }
         } else {
index 525e84b..070dbe1 100644 (file)
@@ -311,7 +311,7 @@ function _simpleButton($id, $text, $image, $imagedir = null)
              <td>
               <div><span class="infoLabel"><?php echo _("Message Information") ?></span></div>
               <div id="infolist" style="display:none">
-               <table cellspacing="2"></table>
+               <ul></ul>
               </div>
              </td>
             </tr>
index cb228a3..eba2247 100644 (file)
@@ -524,6 +524,7 @@ div.dimpActionsCompose, div.dimpActionsMsg {
     font-weight: bold;
     padding-right: 5px;
 }
+
 #partlist table {
     margin-top: 3px;
     margin-bottom: 1px;
@@ -532,6 +533,13 @@ div.dimpActionsCompose, div.dimpActionsMsg {
     padding-bottom: 2px;
 }
 
+#infolist {
+    padding-top: 2px;
+}
+#infolist ul {
+    list-style-type: none;
+}
+
 #msgHeadersContent {
     overflow: hidden;
 }
@@ -1016,9 +1024,9 @@ span.readonlyImg {
 }
 
 /* Growler notification styles. */
-#Growler div.imp-reply {
+#Growler div.imp-reply, span.imp-reply {
     background-image: url("graphics/mail_answered.png");
 }
-#Growler div.imp-forward, div.imp-redirect {
+#Growler div.imp-forward, div.imp-redirect, span.imp-forward, span.imp-redirect {
     background-image: url("graphics/mail_forwarded.png");
 }