}
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) {
* '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:
/* 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 {
<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>
font-weight: bold;
padding-right: 5px;
}
+
#partlist table {
margin-top: 3px;
margin-bottom: 1px;
padding-bottom: 2px;
}
+#infolist {
+ padding-top: 2px;
+}
+#infolist ul {
+ list-style-type: none;
+}
+
#msgHeadersContent {
overflow: hidden;
}
}
/* 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");
}