From 9115c4bb36b67b469d0fd3704c3ee763c629f4ef Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 23 Jan 2006 05:25:09 +0000 Subject: [PATCH] Properties are now shown on view.php and browse.php --- browse.php | 17 ++++++++++++++++- templates/default/browse.tpl | 7 +++++++ templates/default/view.tpl | 10 +++++++++- view.php | 19 ++++++++++++++++++- 4 files changed, 50 insertions(+), 3 deletions(-) diff --git a/browse.php b/browse.php index 8b13341..65c9749 100644 --- a/browse.php +++ b/browse.php @@ -21,7 +21,8 @@ $fetchtemplates = array( 'browse_node', - 'browse' + 'browse', + 'property' ); require_once('./global.php'); @@ -49,6 +50,20 @@ if ($show['prev']) // ################################################################### +$show['props'] = false; +$proplist = ''; +if (sizeof($latest['properties']) > 0) +{ + $show['props'] = true; + foreach ($latest['properties'] AS $propname => $propval) + { + $data = sprintf($lang->string('Property %1$s set to %2$s'), $propname, $propval); + eval('$proplist .= "' . $template->fetch('property') . '";'); + } +} + +// ################################################################### + $revinfo = $controller->cachev->fetch_revision($controller->revctx); $revinfo['message_clean'] = SVNCommon::format_log_message($revinfo['message']); diff --git a/templates/default/browse.tpl b/templates/default/browse.tpl index 33c4ab7..27c16d1 100644 --- a/templates/default/browse.tpl +++ b/templates/default/browse.tpl @@ -33,6 +33,13 @@ $header ) + +
+
    + $proplist +
+
+
$nodes $footer \ No newline at end of file diff --git a/templates/default/view.tpl b/templates/default/view.tpl index 160d985..9d4587e 100644 --- a/templates/default/view.tpl +++ b/templates/default/view.tpl @@ -34,7 +34,15 @@ $navbar -
+ +
+
    + $proplist +
+
+
+ +
style="border-top: none"> $catdata
diff --git a/view.php b/view.php index 3838e1f..b4e64af 100644 --- a/view.php +++ b/view.php @@ -20,7 +20,8 @@ \*=====================================================================*/ $fetchtemplates = array( - 'view' + 'view', + 'property' ); require_once('./global.php'); @@ -56,6 +57,22 @@ $logmsg['date'] = SVNCommon::format_date_string($logmsg['dateline']); $catdata = implode("\n", $controller->library->command('cat')); +// ################################################################### + +$show['props'] = false; +$proplist = ''; +if (sizeof($latest['properties']) > 0) +{ + $show['props'] = true; + foreach ($latest['properties'] AS $propname => $propval) + { + $data = sprintf($lang->string('Property %1$s set to %2$s'), $propname, $propval); + eval('$proplist .= "' . $template->fetch('property') . '";'); + } +} + +// ################################################################### + // get language information require_once('./includes/file_types.php'); $extension = $funct->fetch_extension($controller->path); -- 2.43.5