Better thread rendering
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sat, 10 Feb 2007 13:29:50 +0000 (13:29 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:27 +0000 (00:35 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@200 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/spool.inc.php
css/style.css

index 07b2098..3d4eee6 100644 (file)
@@ -434,8 +434,9 @@ class BananaSpool
 
             $res .= '<tr class="' . ($_index%2 ? 'pair' : 'impair') . ($overview->isread ? '' : ' new') . "\">\n";
             $res .= '<td class="date">' . $this->formatDate($overview->date) . " </td>\n";
-            $res .= '<td class="subj' . ($_index == $_ref ? ' cur' : '') . '">'
-                . $_pfx_node .($hc ? ($_head ? $spfx_f : ($overview->parent_direct ? $spfx_s : $spfx_snd)) : $spfx_n);
+            $res .= '<td class="subj' . ($_index == $_ref ? ' cur' : '') . '"><div class="tree">'
+                . $_pfx_node .($hc ? ($_head ? $spfx_f : ($overview->parent_direct ? $spfx_s : $spfx_snd)) : $spfx_n)
+                . '</div>';
             $subject = $overview->subject;
             if (function_exists('hook_formatDisplayHeader')) {
                 list($subject, $link) = hook_formatDisplayHeader('subject', $subject, true);
@@ -530,7 +531,7 @@ class BananaSpool
             for ($i = 0; $i < $pos ; $i++) {
                 $ndx += $this->overview[$this->overview[$id_parent]->children[$i]]->desc;
             }
-            $ndx++; //noeud père
+            $ndx++; //noeud père
 
             $id_cur = $id_parent;
         }
index f4fafeb..7654978 100644 (file)
@@ -15,7 +15,7 @@
 .banana .dsc { text-align: left; }
 
 /** THREAD VIEW **/
-.banana table.thread td {
+.banana table.thread td, .banana table.thread tr {
     white-space: nowrap;
     height: 20px;
     vertical-align: middle;
@@ -29,6 +29,7 @@
 
 .banana table.thread .date { width: 15%; text-align: center; }
 .banana table.thread .subj { text-align: left; overflow: hidden; }
+.banana table.thread .tree { float: left; height: 20px; margin: 0; padding: 0; }
 .banana table.thread .from { text-align: left; }
 
 .banana table.thread .cur { font-style: italic; }