Re-add printed by header when printing messages
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 27 Jul 2009 17:58:35 +0000 (11:58 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 27 Jul 2009 17:58:35 +0000 (11:58 -0600)
imp/message.php
imp/templates/message/message.html
imp/themes/screen.css

index 656496d..8958e00 100644 (file)
@@ -694,13 +694,21 @@ if (!empty($atc_parts) && ($show_parts != 'none')) {
         $tmp[] = '</td></tr>';
     }
 
-    $hdrs[] = array('name' => ($show_parts == 'all') ? _("Parts") : _("Attachments"), 'val' => '<table>' . implode('', $tmp) . '</table>', 'i' => (++$i % 2));
-}
-
-if (!empty($conf['print']['add_printedby'])) {
-    // TODO
-    //$hdrs[] = array('name' => _("Printed By"), 'val' => $user_identity->getFullname() ? $user_identity->getFullname() : Horde_Auth::getAuth(), 'i' => (++$i % 2));
-}
+    $hdrs[] = array(
+        'name' => ($show_parts == 'all') ? _("Parts") : _("Attachments"),
+        'val' => '<table>' . implode('', $tmp) . '</table>',
+        'i' => (++$i % 2)
+    );
+}
+
+//if (!empty($conf['print']['add_printedby'])) {
+    $hdrs[] = array(
+        'class' => 'printedby',
+        'name' => _("Printed By"),
+        'val' => $user_identity->getFullname() ? $user_identity->getFullname() : Horde_Auth::getAuth(),
+        'i' => (++$i % 2)
+    );
+//}
 
 $m_template->set('headers', $hdrs);
 $m_template->set('msgtext', $msgtext);
index 2ed4b0a..5a8aef7 100644 (file)
@@ -1,7 +1,7 @@
 <div id="msgheaders">
  <table cellspacing="0">
 <loop:headers>
-  <tr>
+  <tr<if:headers.class> class="<tag:headers.class />"</if:headers.class>>
    <td class="item<tag:headers.i /> rightAlign nowrap" valign="top"><strong><tag:headers.name />:</strong>&nbsp;</td>
    <td class="item<tag:headers.i /> msgheader"><tag:headers.val /></td>
   </tr>
index 6688d19..33ced98 100644 (file)
     margin-left: 3px;
 }
 
+/* Message view styling. */
+#msgheaders tr.printedby {
+    display: none;
+}
+
 /* Newmail alerts. */
 #newmail {
     padding: 1em;
@@ -607,8 +612,6 @@ td.addressTr span.loadingImg {
 }
 
 
-
-
 /* Print CSS rules. */
 @media print {
     body {
@@ -640,6 +643,10 @@ td.addressTr span.loadingImg {
         display: block !important;
     }
 
+    #msgheaders tr.printedby {
+        display: table-row !important;
+    }
+
     .msgfullread .msgBody {
         border-top: 1px solid silver;
     }