1 |
<%args> |
<%args> |
2 |
$page => undef; |
$next |
|
$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 |
</%init> |
</%init> |
12 |
|
|
13 |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
27 |
|
|
28 |
<div style="clear: left"> |
<div style="clear: left"> |
29 |
<% $filter->button( label => 'Filter commits' ) %> |
<% $filter->button( label => 'Filter commits' ) %> |
|
|
|
|
<%perl> |
|
|
</%perl> |
|
30 |
</div> |
</div> |
31 |
|
|
32 |
% 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 ) { |
|
33 |
|
|
34 |
% my $actions = SVNBrowser::Model::ActionCollection->new(); |
% my $actions = SVNBrowser::Model::ActionCollection->new(); |
35 |
<dl> |
<dl> |
37 |
<dt><% Jifty->web->tangent( |
<dt><% Jifty->web->tangent( |
38 |
url => '/rev/' . $r->revision, |
url => '/rev/' . $r->revision, |
39 |
label => $r->revision, |
label => $r->revision, |
40 |
|
continuation => $next, |
41 |
) %> |
) %> |
42 |
<span class="author"><% $r->author %></span> |
<span class="author"><% $r->author %></span> |
43 |
<span class="commit_date"><% $r->commit_date %></span> |
<span class="commit_date"><% $r->commit_date %></span> |
44 |
</dt> |
</dt> |
45 |
<dd> |
<dd> |
46 |
<pre class="commit_message"><% $r->message %></pre> |
<pre class="commit_message"><% $r->message %></pre> |
47 |
% if ($show_actions) { |
% if ($filter->argument_value('show_actions')) { |
48 |
<ul class="actions"> |
<ul class="actions"> |
49 |
% $actions->unlimit; |
% $actions->unlimit; |
50 |
% $actions->limit( column => 'revision', value => $r->revision ); |
% $actions->limit( column => 'revision', value => $r->revision ); |
51 |
% while (my $a = $actions->next) { |
% while (my $a = $actions->next) { |
52 |
% my $full_path = $a->branch . $a->rel_path ; |
% my $full_path = $a->branch . $a->rel_path ; |
53 |
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %> |
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %> |
54 |
<% Jifty->web->tangent( url => '/rev/' . $r->revision . $full_path, label => 'diff' ) %> |
<% Jifty->web->tangent( url => '/rev/' . $r->revision . $full_path, label => 'diff', continuation => $next ) %> |
55 |
</tt></li> |
</tt></li> |
56 |
% } |
% } |
57 |
</ul> |
</ul> |
72 |
% } |
% } |
73 |
|
|
74 |
% if ($revisions->pager->last_page > 1) { |
% if ($revisions->pager->last_page > 1) { |
75 |
page <% $page %> of <% $revisions->pager->last_page %> |
page <% $revisions->pager->current_page %> of <% $revisions->pager->last_page %> |
76 |
% } |
% } |
77 |
|
|
78 |
% if ($revisions->pager->next_page) { |
% if ($revisions->pager->next_page) { |