1 |
<%args> |
<%args> |
2 |
$page => undef; |
$next => undef |
|
$author => undef; |
|
|
$show_actions => undef; |
|
|
$per_page => undef; |
|
|
$from_date => undef; |
|
|
$to_date => undef; |
|
|
$search => undef; |
|
|
$branch => undef; |
|
3 |
</%args> |
</%args> |
4 |
|
|
5 |
<%init> |
<%init> |
6 |
my $filter = Jifty->web->new_action( |
my $filter = Jifty->web->new_action( |
7 |
class => 'Filter', |
class => 'Filter', |
8 |
moniker => 'filer_list', |
moniker => 'filter_list', |
9 |
|
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"> |
33 |
|
|
34 |
<div style="clear: left"> |
<div style="clear: left"> |
35 |
<% $filter->button( label => 'Filter commits' ) %> |
<% $filter->button( label => 'Filter commits' ) %> |
|
|
|
|
<%perl> |
|
|
</%perl> |
|
36 |
</div> |
</div> |
37 |
|
|
38 |
% my $res = Jifty->web->response->result('filter_list'); |
% if ( $filter->result and my $revisions = $filter->result->content('revisions') ) { |
|
% my $revisions = $res->content('revisions') if ($res); |
|
|
% use Data::Dump qw/dump/; warn dump($res, $revisions); |
|
|
% if ( $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 |
) %> |
next => $next, |
46 |
<span class="author"><% $r->author %></span> |
show_actions => $filter->argument_value('show_actions'), |
47 |
<span class="commit_date"><% $r->commit_date %></span> |
r => $r |
48 |
</dt> |
&> |
|
<dd> |
|
|
<pre class="commit_message"><% $r->message %></pre> |
|
|
% if ($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' ) %> |
|
|
</tt></li> |
|
|
% } |
|
|
</ul> |
|
|
% } |
|
|
|
|
|
</dd> |
|
49 |
% } |
% } |
50 |
</dl> |
</dl> |
51 |
|
|
60 |
% } |
% } |
61 |
|
|
62 |
% if ($revisions->pager->last_page > 1) { |
% if ($revisions->pager->last_page > 1) { |
63 |
page <% $page %> of <% $revisions->pager->last_page %> |
page <% $revisions->pager->current_page %> of <% $revisions->pager->last_page %> |
64 |
% } |
% } |
65 |
|
|
66 |
% if ($revisions->pager->next_page) { |
% if ($revisions->pager->next_page) { |