From: Michael M Slusarz Date: Mon, 6 Jul 2009 05:36:43 +0000 (-0600) Subject: Tweaks to history display X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6b5329d86cabe7d2cb9678dc1a5458281004a83f;p=horde.git Tweaks to history display --- diff --git a/chora/history.php b/chora/history.php index 1571a037e..d2ace393c 100644 --- a/chora/history.php +++ b/chora/history.php @@ -20,13 +20,6 @@ if (!$VC->hasFeature('branches')) { exit; } -/* Spawn the file object. */ -try { - $fl = $VC->getFileObject($where); -} catch (Horde_Vcs_Exception $e) { - Chora::fatal($e); -} - $colset = array('#ccdeff', '#ecf', '#fec', '#efc', '#cfd', '#dcdba0'); $branch_colors = $colStack = array(); foreach ($branches as $brrev => $brcont) { @@ -105,6 +98,15 @@ function _populateGrid($row, $col) } } +/* Spawn the file object. */ +try { + $fl = $VC->getFileObject($where); +} catch (Horde_Vcs_Exception $e) { + Chora::fatal($e); +} + +$revlist = $fl->getBranchList(); + /* Start row at the bottom trunk revision. Since branches always go * down, there can never be one above 1.1, and so this is a safe * location to start. We will then work our way up, recursively diff --git a/chora/templates/history/blank.inc b/chora/templates/history/blank.inc index a5b0e2597..d92265bf9 100644 --- a/chora/templates/history/blank.inc +++ b/chora/templates/history/blank.inc @@ -1 +1 @@ ->  \ No newline at end of file +  diff --git a/chora/templates/history/branch_cell.inc b/chora/templates/history/branch_cell.inc index d8e2d69ae..7633a6e0a 100644 --- a/chora/templates/history/branch_cell.inc +++ b/chora/templates/history/branch_cell.inc @@ -1,4 +1,4 @@ - + :
diff --git a/chora/templates/history/rev.inc b/chora/templates/history/rev.inc index 3146f03f9..3f4535f53 100644 --- a/chora/templates/history/rev.inc +++ b/chora/templates/history/rev.inc @@ -1,4 +1,4 @@ - +
diff --git a/chora/themes/screen.css b/chora/themes/screen.css index 31f8be18d..4bbab1cd4 100644 --- a/chora/themes/screen.css +++ b/chora/themes/screen.css @@ -290,3 +290,26 @@ div.diffclear { td.browseLocation em { display: block; } + +.historybg { + background: #e9e9e9; + text-align: center; +} +.historybg1 { + background: #ccdeff; +} +.historybg2 { + background: #ecf; +} +.historybg3 { + background: #fec; +} +.historybg4 { + background: #efc; +} +.historybg5 { + background: #cfd; +} +.historybg6 { + background: #dcdba0; +}