3 |
$next => undef |
$next => undef |
4 |
$show_actions => 0 |
$show_actions => 0 |
5 |
$r => undef |
$r => undef |
6 |
|
$rel_path => undef |
7 |
</%args> |
</%args> |
8 |
<%init> |
<%init> |
9 |
|
|
10 |
my $actions = SVNBrowser::Model::ActionCollection->new(); |
my $actions = SVNBrowser::Model::ActionCollection->new(); |
11 |
$actions->unlimit; |
$actions->unlimit; |
12 |
$actions->limit( column => 'revision', value => $revision ); |
$actions->limit( column => 'revision', value => $revision ); |
13 |
|
$actions->limit( column => 'rel_path', value => $rel_path, operator => 'STARTSWITH' ) if ($rel_path); |
14 |
|
|
15 |
if (! $r) { |
if (! $r) { |
16 |
|
warn "loading revision $revision\n"; |
17 |
$r = SVNBrowser::Model::Revision->new(); |
$r = SVNBrowser::Model::Revision->new(); |
18 |
$r->load_by_cols( revision => $revision ); |
$r->load_by_cols( revision => $revision ); |
19 |
} |
} |
38 |
% if ($show_actions) { |
% if ($show_actions) { |
39 |
<ul class="actions"> |
<ul class="actions"> |
40 |
% while (my $a = $actions->next) { |
% while (my $a = $actions->next) { |
41 |
% my $full_path = $a->branch . $a->rel_path ; |
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $a->branch %><% Jifty->web->link( |
42 |
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %> |
label => $a->rel_path, |
43 |
|
parameters => { |
44 |
|
rel_path => $a->rel_path, |
45 |
|
} |
46 |
|
) %> |
47 |
% if ($next) { |
% if ($next) { |
48 |
|
% my $full_path = $a->branch . $a->rel_path ; |
49 |
<% Jifty->web->tangent( url => '/rev/' . $revision . $full_path, label => 'diff', continuation => $next ) %> |
<% Jifty->web->tangent( url => '/rev/' . $revision . $full_path, label => 'diff', continuation => $next ) %> |
50 |
% } |
% } |
51 |
</tt></li> |
</tt></li> |