1 |
<%args> |
<%args> |
2 |
$next |
$next => undef |
3 |
</%args> |
</%args> |
4 |
|
|
5 |
<%init> |
<%init> |
8 |
moniker => 'filter_list', |
moniker => 'filter_list', |
9 |
arguments => { %ARGS }, |
arguments => { %ARGS }, |
10 |
); |
); |
11 |
|
|
12 |
|
$filter->run unless ($next); |
13 |
|
|
14 |
|
#use Data::Dump qw/dump/; |
15 |
|
#warn "ARGS = ", dump( %ARGS ); |
16 |
</%init> |
</%init> |
17 |
|
|
18 |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
21 |
|
|
22 |
<% $filter->form_field('author') %> |
<% $filter->form_field('author') %> |
23 |
<% $filter->form_field('branch') %> |
<% $filter->form_field('branch') %> |
24 |
|
<% $filter->form_field('rel_path') %> |
25 |
<% $filter->form_field('search') %> |
<% $filter->form_field('search') %> |
26 |
|
|
27 |
<div class="inline"> |
<div class="inline"> |
37 |
|
|
38 |
% if ( $filter->result and my $revisions = $filter->result->content('revisions') ) { |
% if ( $filter->result and my $revisions = $filter->result->content('revisions') ) { |
39 |
|
|
|
% my $actions = SVNBrowser::Model::ActionCollection->new(); |
|
40 |
<dl> |
<dl> |
41 |
% while (my $r = $revisions->next) { |
% while (my $r = $revisions->next) { |
42 |
<dt><% Jifty->web->tangent( |
<& /actions, |
43 |
url => '/rev/' . $r->revision, |
revision => $r->revision, |
44 |
label => $r->revision, |
rel_path => $filter->argument_value('rel_path'), |
45 |
continuation => $next, |
next => $next, |
46 |
) %> |
show_actions => $filter->argument_value('show_actions'), |
47 |
<span class="author"><% $r->author %></span> |
r => $r |
48 |
<span class="commit_date"><% $r->commit_date %></span> |
&> |
|
</dt> |
|
|
<dd> |
|
|
<pre class="commit_message"><% $r->message %></pre> |
|
|
% if ($filter->argument_value('show_actions')) { |
|
|
<ul class="actions"> |
|
|
% $actions->unlimit; |
|
|
% $actions->limit( column => 'revision', value => $r->revision ); |
|
|
% while (my $a = $actions->next) { |
|
|
% my $full_path = $a->branch . $a->rel_path ; |
|
|
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %> |
|
|
<% Jifty->web->tangent( url => '/rev/' . $r->revision . $full_path, label => 'diff', continuation => $next ) %> |
|
|
</tt></li> |
|
|
% } |
|
|
</ul> |
|
|
% } |
|
|
|
|
|
</dd> |
|
49 |
% } |
% } |
50 |
</dl> |
</dl> |
51 |
|
|