1 |
<%args> |
<%args> |
2 |
$filter |
$next => undef |
|
$next |
|
3 |
</%args> |
</%args> |
4 |
|
|
5 |
<%init> |
<%init> |
6 |
|
my $filter = Jifty->web->new_action( |
7 |
|
class => 'Filter', |
8 |
|
moniker => 'filter_list', |
9 |
|
arguments => { %ARGS }, |
10 |
|
); |
11 |
|
|
12 |
|
if (! $next) { |
13 |
|
$filter->argument_values({ show_actions => 1 }); |
14 |
|
$filter->run; |
15 |
|
} |
16 |
|
|
17 |
|
#use Data::Dump qw/dump/; |
18 |
|
#warn "ARGS = ", dump( %ARGS ); |
19 |
</%init> |
</%init> |
20 |
|
|
21 |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
24 |
|
|
25 |
<% $filter->form_field('author') %> |
<% $filter->form_field('author') %> |
26 |
<% $filter->form_field('branch') %> |
<% $filter->form_field('branch') %> |
27 |
|
<% $filter->form_field('rel_path') %> |
28 |
<% $filter->form_field('search') %> |
<% $filter->form_field('search') %> |
29 |
|
|
30 |
<div class="inline"> |
<div class="inline"> |
40 |
|
|
41 |
% if ( $filter->result and my $revisions = $filter->result->content('revisions') ) { |
% if ( $filter->result and my $revisions = $filter->result->content('revisions') ) { |
42 |
|
|
|
% my $actions = SVNBrowser::Model::ActionCollection->new(); |
|
43 |
<dl> |
<dl> |
44 |
% while (my $r = $revisions->next) { |
% while (my $r = $revisions->next) { |
45 |
<dt><% Jifty->web->tangent( |
<& /actions, |
46 |
url => '/rev/' . $r->revision, |
revision => $r->revision, |
47 |
label => $r->revision, |
rel_path => $filter->argument_value('rel_path'), |
48 |
continuation => $next, |
next => $next, |
49 |
) %> |
show_actions => $filter->argument_value('show_actions'), |
50 |
<span class="author"><% $r->author %></span> |
r => $r |
51 |
<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> |
|
52 |
% } |
% } |
53 |
</dl> |
</dl> |
54 |
|
|