From 529ab24fe14fc17ce805511218cd452584a986fb Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 4 Feb 2009 23:42:13 -0700 Subject: [PATCH] Initial support for viewing directories as exist in a branch --- chora/browsedir.php | 8 +++++++- chora/templates/directory/file.inc | 10 +++++----- chora/templates/directory/header.inc | 21 ++++++++++++++++++++- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/chora/browsedir.php b/chora/browsedir.php index 8fe1f483b..e1fb277dd 100644 --- a/chora/browsedir.php +++ b/chora/browsedir.php @@ -55,8 +55,13 @@ foreach ($umap as $key => $val) { $url[$key] = Chora::url('browsedir', $where . '/', $arg); } +if ($VC->hasFeature('branches')) { + $branches = $dir->getBranches(); +} + /* Print out the directory header. */ $printAllCols = count($fileList); +$sortdirclass = $acts['sbt'] ? 'sortdown' : 'sortup'; Horde::addScriptFile('prototype.js', 'horde', true); Horde::addScriptFile('tables.js', 'horde', true); @@ -93,6 +98,7 @@ if ($fileList) { Chora::isRestricted($currFile->queryName())) { continue; } + $lg = $currFile->queryLastLog(); $realname = $currFile->queryName(); $mimeType = Horde_Mime_Magic::filenameToMIME($realname); @@ -100,7 +106,7 @@ if ($fileList) { $icon = Horde_Mime_Viewer::getIcon($mimeType); $author = Chora::showAuthorName($lg->queryAuthor()); - $head = $currFile->queryHead(); + $filerev = $lg->queryRevision(); $date = $lg->queryDate(); $log = $lg->queryLog(); $attic = $currFile->isDeleted(); diff --git a/chora/templates/directory/file.inc b/chora/templates/directory/file.inc index 0169bf7c6..a4bf75ac5 100644 --- a/chora/templates/directory/file.inc +++ b/chora/templates/directory/file.inc @@ -9,18 +9,18 @@ - + - + - + -abbrev($head)) ?> +abbrev($filerev)) ?> @@ -31,7 +31,7 @@ - abbrev($head)) ?> + abbrev($filerev)) ?> diff --git a/chora/templates/directory/header.inc b/chora/templates/directory/header.inc index 07fe86706..f2b60270d 100644 --- a/chora/templates/directory/header.inc +++ b/chora/templates/directory/header.inc @@ -1,4 +1,23 @@ - + 1): ?> + + + + +
+
+ + + + + +
+
+ + -- 2.11.0