From: Michael M Slusarz Date: Thu, 18 Feb 2010 21:07:22 +0000 (-0700) Subject: Thread view improvements X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6969a512d22bf1f74a91d178cc8266fe07205315;p=horde.git Thread view improvements --- diff --git a/imp/templates/thread/thread.html b/imp/templates/thread/thread.html index 0944c3daf..61d940b04 100644 --- a/imp/templates/thread/thread.html +++ b/imp/templates/thread/thread.html @@ -1,55 +1,26 @@

Thread Display:Multiple Message View:

-
-
+
-
 
+
-
- - - - - - - - + +
+
+ + To:From: + + () +
+ +
+ +
+
- -
- - - - - - -
- - - - - - - - - - - - - - - - -
Date: 
To:From: 
Subject: 
- -
- -
-
-
 
diff --git a/imp/themes/screen.css b/imp/themes/screen.css index a09f45be5..a071c54bc 100644 --- a/imp/themes/screen.css +++ b/imp/themes/screen.css @@ -376,14 +376,10 @@ table.accountsmanagement td.noneconfigured { background: #f00; } +/* Pad the addressbook icon in header compose links. */ td.msgheader { width: 100%; } -table.multipleMsgs td.msgheader { - width: auto; -} - -/* Pad the addressbook icon in header compose links. */ .msgheader img { vertical-align: middle; padding: 1px 1px 1px 2px; @@ -432,6 +428,26 @@ span.spellcheckPopdownImg:hover { text-decoration: underline; } +/* Thread page */ +.threadSummary { + margin: 5px 3px; +} +.threadSummary div { + height: 16px; +} +.threadBox { + margin: 3px; +} +.threadBox div.item0 { + padding: 1px 2px; +} +.threadBox span.threadlink { + float: right; +} +.threadBox .messageBody { + border-bottom: 0; +} + /* Thread/folder images */ span.treeImg { height: 20px; diff --git a/imp/thread.php b/imp/thread.php index acb787694..b863e1a43 100644 --- a/imp/thread.php +++ b/imp/thread.php @@ -113,12 +113,9 @@ foreach ($loop_array as $mbox => $idxlist) { } $subject_header = htmlspecialchars($envelope['subject'], ENT_COMPAT, $charset); - if ($mode == 'thread') { - if (empty($subject)) { - $subject = preg_replace('/^re:\s*/i', '', $subject_header); - } + if (($mode == 'thread') && empty($subject)) { + $subject = preg_replace('/^re:\s*/i', '', $subject_header); } - $curr_msg['subject'] = $subject_header; /* Create links to current message and mailbox. */ if ($mode == 'thread') { @@ -129,7 +126,6 @@ foreach ($loop_array as $mbox => $idxlist) { $curr_msg['link'] .= ' | ' . Horde::widget(IMP::generateIMPUrl('message.php', $imp_mbox['mailbox'], $idx, $mbox), _("Go to Message"), 'widget', '', '', _("Go to Message"), true); $curr_msg['link'] .= ' | ' . Horde::widget(IMP::generateIMPUrl('mailbox.php', $mbox)->add(array('start' => $imp_mailbox->getArrayIndex($idx))), sprintf(_("Back to %s"), $page_label), 'widget', '', '', sprintf(_("Bac_k to %s"), $page_label)); - $curr_tree['class'] = (++$rowct % 2) ? 'text' : 'item0'; $curr_tree['subject'] = (($mode == 'thread') ? $threadtree[$idx] : null) . ' ' . Horde::link('#i' . $idx) . Horde_String::truncate($subject_header, 60) . ' (' . $addr . ')'; $msgs[] = $curr_msg; @@ -161,6 +157,7 @@ $template->set('tree', $tree); /* Output page. */ $title = ($mode == 'thread') ? _("Thread View") : _("Multiple Message View"); +Horde::addScriptFile('stripe.js', 'horde'); IMP::prepareMenu(); require IMP_TEMPLATES . '/common-header.inc'; IMP::menu();