1 |
<%args> |
<%args> |
2 |
$page => undef; |
$filter |
3 |
$author => undef; |
$next |
|
$show_actions => undef; |
|
|
$per_page => undef; |
|
|
$from_date => undef; |
|
|
$to_date => undef; |
|
|
$search => undef; |
|
|
$branch => undef; |
|
4 |
</%args> |
</%args> |
5 |
|
|
6 |
<%init> |
<%init> |
|
my $filter = Jifty->web->new_action( |
|
|
class => 'Filter', |
|
|
moniker => 'filer_list', |
|
|
); |
|
|
|
|
7 |
</%init> |
</%init> |
8 |
|
|
9 |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
23 |
|
|
24 |
<div style="clear: left"> |
<div style="clear: left"> |
25 |
<% $filter->button( label => 'Filter commits' ) %> |
<% $filter->button( label => 'Filter commits' ) %> |
|
|
|
|
<%perl> |
|
|
</%perl> |
|
26 |
</div> |
</div> |
27 |
|
|
28 |
% 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 ) { |
|
29 |
|
|
30 |
% my $actions = SVNBrowser::Model::ActionCollection->new(); |
% my $actions = SVNBrowser::Model::ActionCollection->new(); |
31 |
<dl> |
<dl> |
33 |
<dt><% Jifty->web->tangent( |
<dt><% Jifty->web->tangent( |
34 |
url => '/rev/' . $r->revision, |
url => '/rev/' . $r->revision, |
35 |
label => $r->revision, |
label => $r->revision, |
36 |
|
continuation => $next, |
37 |
) %> |
) %> |
38 |
<span class="author"><% $r->author %></span> |
<span class="author"><% $r->author %></span> |
39 |
<span class="commit_date"><% $r->commit_date %></span> |
<span class="commit_date"><% $r->commit_date %></span> |
40 |
</dt> |
</dt> |
41 |
<dd> |
<dd> |
42 |
<pre class="commit_message"><% $r->message %></pre> |
<pre class="commit_message"><% $r->message %></pre> |
43 |
% if ($show_actions) { |
% if ($filter->argument_value('show_actions')) { |
44 |
<ul class="actions"> |
<ul class="actions"> |
45 |
% $actions->unlimit; |
% $actions->unlimit; |
46 |
% $actions->limit( column => 'revision', value => $r->revision ); |
% $actions->limit( column => 'revision', value => $r->revision ); |
47 |
% while (my $a = $actions->next) { |
% while (my $a = $actions->next) { |
48 |
% my $full_path = $a->branch . $a->rel_path ; |
% my $full_path = $a->branch . $a->rel_path ; |
49 |
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %> |
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %> |
50 |
<% Jifty->web->tangent( url => '/rev/' . $r->revision . $full_path, label => 'diff' ) %> |
<% Jifty->web->tangent( url => '/rev/' . $r->revision . $full_path, label => 'diff', continuation => $next ) %> |
51 |
</tt></li> |
</tt></li> |
52 |
% } |
% } |
53 |
</ul> |
</ul> |
68 |
% } |
% } |
69 |
|
|
70 |
% if ($revisions->pager->last_page > 1) { |
% if ($revisions->pager->last_page > 1) { |
71 |
page <% $page %> of <% $revisions->pager->last_page %> |
page <% $revisions->pager->current_page %> of <% $revisions->pager->last_page %> |
72 |
% } |
% } |
73 |
|
|
74 |
% if ($revisions->pager->next_page) { |
% if ($revisions->pager->next_page) { |