From e0d299d0946aa6e5f75ffc32f4e13392be8fd84b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Sep 2005 05:37:08 +0000 Subject: [PATCH] Removing hard-coded /viewsvn/ path --- includes/init.php | 1 + includes/paths.php | 4 +++- templates/default/blame.tpl | 10 +++++----- templates/default/blame_line.tpl | 2 +- templates/default/browse.tpl | 8 ++++---- templates/default/browse_node.tpl | 8 ++++---- templates/default/diff.tpl | 4 ++-- templates/default/diff_line.tpl | 2 +- templates/default/headinclude.tpl | 2 +- templates/default/index_node.tpl | 2 +- templates/default/log_node.tpl | 8 ++++---- templates/default/view.tpl | 8 ++++---- 12 files changed, 31 insertions(+), 28 deletions(-) diff --git a/includes/init.php b/includes/init.php index d66506d..badb320 100644 --- a/includes/init.php +++ b/includes/init.php @@ -73,6 +73,7 @@ $viewsvn->repos =& new Repository($repository, $iscontainer); // ################################################################### // path manager require_once('./includes/paths.php'); +$viewsvn->path = $webpath; $viewsvn->paths =& new Paths($pathtype); // ################################################################### diff --git a/includes/paths.php b/includes/paths.php index 5f1a963..5739bc2 100644 --- a/includes/paths.php +++ b/includes/paths.php @@ -142,6 +142,8 @@ class Paths */ function construct_breadcrumb($path, $doslash = true) { + global $viewsvn; + $html = '/ '; $itembit = '/'; @@ -151,7 +153,7 @@ class Paths foreach ($temp AS $val => $item) { $itembit .= $item . (($count != $val) ? '/' : ($doslash ? '/' : '')); - $html .= ($count == $val ? '' : '') . $item . ($count == $val ? '' : '') . ($count != $val ? ' / ' : ''); + $html .= ($count == $val ? '' : '') . $item . ($count == $val ? '' : '') . ($count != $val ? ' / ' : ''); } return $html; diff --git a/templates/default/blame.tpl b/templates/default/blame.tpl index 67abce9..574858b 100644 --- a/templates/default/blame.tpl +++ b/templates/default/blame.tpl @@ -2,21 +2,21 @@ $doctype $headinclude - + Blame $header -View Log +View Log - - Go to HEAD - - Diff to HEAD + - Go to HEAD + - Diff to HEAD - - Diff to PREV + - Diff to PREV
$navbar
diff --git a/templates/default/blame_line.tpl b/templates/default/blame_line.tpl index b043ef9..536df27 100644 --- a/templates/default/blame_line.tpl +++ b/templates/default/blame_line.tpl @@ -1,5 +1,5 @@ - $entry[rev] + $entry[rev] $entry[author] $entry[line_clean] diff --git a/templates/default/browse.tpl b/templates/default/browse.tpl index 8774e23..050e05e 100644 --- a/templates/default/browse.tpl +++ b/templates/default/browse.tpl @@ -20,15 +20,15 @@ $header ( - View Log + View Log - - Go to HEAD - - Diff to HEAD + - Go to HEAD + - Diff to HEAD - - Diff to PREV + - Diff to PREV ) diff --git a/templates/default/browse_node.tpl b/templates/default/browse_node.tpl index d0403b8..a2bdab7 100644 --- a/templates/default/browse_node.tpl +++ b/templates/default/browse_node.tpl @@ -1,11 +1,11 @@
- $item + $item - $item + $item - Blame - - View Log + Blame - + View Log
\ No newline at end of file diff --git a/templates/default/diff.tpl b/templates/default/diff.tpl index 7275f5f..49f408c 100644 --- a/templates/default/diff.tpl +++ b/templates/default/diff.tpl @@ -2,7 +2,7 @@ $doctype $headinclude - + Diff @@ -12,7 +12,7 @@ $navbar
-View Log +View Log $changes diff --git a/templates/default/diff_line.tpl b/templates/default/diff_line.tpl index 20dd2b6..8b6cabc 100644 --- a/templates/default/diff_line.tpl +++ b/templates/default/diff_line.tpl @@ -1,6 +1,6 @@ - r$low + r$low r$high   diff --git a/templates/default/headinclude.tpl b/templates/default/headinclude.tpl index 65fe4ce..619df9d 100644 --- a/templates/default/headinclude.tpl +++ b/templates/default/headinclude.tpl @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/templates/default/index_node.tpl b/templates/default/index_node.tpl index 8045d21..e44d75c 100644 --- a/templates/default/index_node.tpl +++ b/templates/default/index_node.tpl @@ -1 +1 @@ -
  • $repos
  • +
  • $repos
  • diff --git a/templates/default/log_node.tpl b/templates/default/log_node.tpl index 19d2940..2332fc4 100644 --- a/templates/default/log_node.tpl +++ b/templates/default/log_node.tpl @@ -1,10 +1,10 @@
    r$log[rev] ($log[author]) $log[date] $log[timezone] - - View - - Blame - - Diff to HEAD - - Diff to PREV + - View + - Blame + - Diff to HEAD + - Diff to PREV
    $log[message_clean] diff --git a/templates/default/view.tpl b/templates/default/view.tpl index 0a04da2..7dd4239 100644 --- a/templates/default/view.tpl +++ b/templates/default/view.tpl @@ -20,14 +20,14 @@ $navbar ( - View Log + View Log - - Go to HEAD - - Diff to HEAD + - Go to HEAD + - Diff to HEAD - - Diff to PREV + - Diff to PREV ) -- 2.43.5