From 5ca2cb50bbd1632386ee5884d935513880c90011 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 2 Dec 2005 20:21:59 +0000 Subject: [PATCH] - get view link to work for files - only show blame link for non-directories --- log.php | 2 +- templates/default/log_node.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/log.php b/log.php index f2afc2f..236d76a 100644 --- a/log.php +++ b/log.php @@ -41,7 +41,7 @@ foreach ($logs->fetch() AS $log) { $prev = $viewsvn->svn->common->fetch_prev_rev($path, $log['rev']); - $link['view'] = ($isdir ? $viewsvn->paths->out('view.php' . $viewsvn->paths->fetch_rev_str(false, $log['rev']), $path) : ''); + $link['view'] = $viewsvn->paths->out(($isdir ? 'browse.php' : 'view.php') . $viewsvn->paths->fetch_rev_str(false, $log['rev']), $path); $link['blame'] = $viewsvn->paths->out('blame.php' . $viewsvn->paths->fetch_rev_str(false, $log['rev']), $path); $show['diffhead'] = $viewsvn->svn->common->fetch_head_rev($path) != $log['rev']; diff --git a/templates/default/log_node.tpl b/templates/default/log_node.tpl index 2332fc4..80d4faa 100644 --- a/templates/default/log_node.tpl +++ b/templates/default/log_node.tpl @@ -1,8 +1,8 @@
r$log[rev] ($log[author]) $log[date] $log[timezone] - - View - - Blame + - View + - Blame - Diff to HEAD - Diff to PREV
-- 2.43.5