]> src.bluestatic.org Git - viewsvn.git/blob - log.php
- added main.css
[viewsvn.git] / log.php
1 <?php
2 /*=====================================================================*\
3 || ################################################################### ||
4 || # ViewSVN [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
12
13 $fetchtemplates = array(
14 'log_node',
15 'log'
16 );
17
18 require_once('./global.php');
19
20 $navbar = $viewsvn->paths->construct_breadcrumb($path, false);
21
22 // ###################################################################
23
24 // this is NOT supposed to allow for revision ranges
25 $logs = new SVNLog($repos, $relpath, 0, $viewsvn->paths->fetch_rev_num());
26
27 $isdir = $viewsvn->svn->common->isdir($path);
28
29 $nodes = '';
30
31 foreach ($logs->fetch() AS $log)
32 {
33 $prev = $viewsvn->svn->common->fetch_prev_rev($path, $log['rev']);
34
35 $link['view'] = (!$isdir ? $viewsvn->paths->out('view.php' . $viewsvn->paths->fetch_rev_str(false, $log['rev']), $path) : '');
36 $link['blame'] = $viewsvn->paths->out('blame.php' . $viewsvn->paths->fetch_rev_str(false, $log['rev']), $path);
37
38 $show['diffhead'] = $viewsvn->svn->common->fetch_head_rev($path) != $log['rev'];
39 if ($show['diffhead'])
40 {
41 $link['diffhead'] = $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, 'HEAD', $log['rev']), $path);
42 }
43
44 $show['diffprev'] = $prev != -1;
45 if ($show['diffprev'])
46 {
47 $link['diffprev'] = $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, $log['rev'], $prev), $path);
48 }
49
50 $log['message_clean'] = nl2br(htmlspecialchars($log['message']));
51
52 eval('$nodes .= "' . $template->fetch('log_node') . '";');
53 }
54
55 // ###################################################################
56
57 eval('$template->flush("' . $template->fetch('log') . '");');
58
59 /*=====================================================================*\
60 || ###################################################################
61 || # $HeadURL$
62 || # $Id$
63 || ###################################################################
64 \*=====================================================================*/
65 ?>