1 |
dpavlin |
43 |
<%args> |
2 |
|
|
$revision |
3 |
|
|
$next => undef |
4 |
|
|
$show_actions => 0 |
5 |
|
|
$r => undef |
6 |
|
|
</%args> |
7 |
|
|
<%init> |
8 |
|
|
|
9 |
|
|
my $actions = SVNBrowser::Model::ActionCollection->new(); |
10 |
|
|
$actions->unlimit; |
11 |
|
|
$actions->limit( column => 'revision', value => $revision ); |
12 |
|
|
|
13 |
|
|
if (! $r) { |
14 |
|
|
$r = SVNBrowser::Model::Revision->new(); |
15 |
|
|
$r->load_by_cols( revision => $revision ); |
16 |
|
|
} |
17 |
|
|
|
18 |
|
|
</%init> |
19 |
|
|
|
20 |
|
|
<dt> |
21 |
|
|
% if ($next) { |
22 |
|
|
<% Jifty->web->tangent( |
23 |
|
|
url => '/rev/' . $revision, |
24 |
|
|
label => $revision, |
25 |
|
|
continuation => $next, |
26 |
|
|
) %> |
27 |
|
|
% } else { |
28 |
|
|
<tt><% $revision %></tt> |
29 |
|
|
% } |
30 |
|
|
<span class="author"><% $r->author %></span> |
31 |
|
|
<span class="commit_date"><% $r->commit_date %></span> |
32 |
|
|
</dt> |
33 |
|
|
<dd> |
34 |
|
|
<pre class="commit_message"><% $r->message %></pre> |
35 |
|
|
% if ($show_actions) { |
36 |
|
|
<ul class="actions"> |
37 |
|
|
% while (my $a = $actions->next) { |
38 |
|
|
% my $full_path = $a->branch . $a->rel_path ; |
39 |
|
|
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %> |
40 |
|
|
% if ($next) { |
41 |
|
|
<% Jifty->web->tangent( url => '/rev/' . $revision . $full_path, label => 'diff', continuation => $next ) %> |
42 |
|
|
% } |
43 |
|
|
</tt></li> |
44 |
|
|
% } |
45 |
|
|
</ul> |
46 |
|
|
% } # if $show_actions |
47 |
|
|
|
48 |
|
|
</dd> |
49 |
|
|
|