3 |
|
|
4 |
$author => undef; |
$author => undef; |
5 |
|
|
6 |
|
$show_actions => undef; |
7 |
|
|
8 |
</%args> |
</%args> |
9 |
|
|
10 |
<%init> |
<%init> |
11 |
my $filter = Jifty->web->new_action( |
my $filter = Jifty->web->new_action( |
12 |
class => 'Filter', |
class => 'Filter', |
13 |
moniker => 'filer_list', |
moniker => 'filer_list', |
14 |
|
# arguments => { |
15 |
|
# author => $author, |
16 |
|
# show_actions => $show_actions, |
17 |
|
# }, |
18 |
); |
); |
19 |
|
|
20 |
my $revisions = SVNBrowser::Model::RevisionCollection->new(); |
my $revisions = SVNBrowser::Model::RevisionCollection->new(); |
21 |
|
|
22 |
$author ||= $filter->argument_value('author'); |
$author ||= $filter->argument_value('author'); |
23 |
|
$show_actions ||= $filter->argument_value('show_actions'); |
24 |
|
|
25 |
if ($author) { |
if ($author) { |
26 |
$revisions->limit( |
$revisions->limit( |
33 |
$revisions->order_by({ column => 'commit_date', order => 'desc' }); |
$revisions->order_by({ column => 'commit_date', order => 'desc' }); |
34 |
$revisions->set_page_info( |
$revisions->set_page_info( |
35 |
current_page => $page, |
current_page => $page, |
36 |
per_page => 20, |
per_page => $show_actions ? 5 : 20, |
37 |
); |
); |
38 |
$revisions->goto_first_item; |
$revisions->goto_first_item; |
39 |
|
|
47 |
<% Jifty->web->form->start %> |
<% Jifty->web->form->start %> |
48 |
<% $filter->form_field('author', default_value => $author ) %> |
<% $filter->form_field('author', default_value => $author ) %> |
49 |
<% $filter->button( label => 'Show just this commiter' ) %> |
<% $filter->button( label => 'Show just this commiter' ) %> |
50 |
|
<% $filter->form_field('show_actions', default_value => $show_actions ) %> |
51 |
<% Jifty->web->form->end %> |
<% Jifty->web->form->end %> |
52 |
|
|
53 |
<%perl> |
<%perl> |
69 |
</dt> |
</dt> |
70 |
<dd> |
<dd> |
71 |
<pre class="commit_message"><% $r->message %></pre> |
<pre class="commit_message"><% $r->message %></pre> |
72 |
<ul class="actions"> |
% if ($show_actions) { |
73 |
% $actions->limit( column => 'revision', value => $r->revision ); |
<ul class="actions"> |
74 |
% while (my $a = $actions->next) { |
% $actions->limit( column => 'revision', value => $r->revision ); |
75 |
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $a->branch %> <% $a->rel_path %></tt></li> |
% while (my $a = $actions->next) { |
76 |
|
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $a->branch %> <% $a->rel_path %></tt></li> |
77 |
|
% } |
78 |
|
</ul> |
79 |
% } |
% } |
|
</ul> |
|
80 |
|
|
81 |
</dd> |
</dd> |
82 |
% } |
% } |
85 |
% if ($revisions->pager->previous_page) { |
% if ($revisions->pager->previous_page) { |
86 |
<% Jifty->web->link( |
<% Jifty->web->link( |
87 |
label => "Previous", |
label => "Previous", |
88 |
onclick => { args => { page => $revisions->pager->previous_page } } |
onclick => |
89 |
|
{ args => { |
90 |
|
page => $revisions->pager->previous_page, |
91 |
|
author => $author, |
92 |
|
show_actions => $show_actions, |
93 |
|
} } |
94 |
) %> |
) %> |
95 |
% } |
% } |
96 |
|
|
101 |
% if ($revisions->pager->next_page) { |
% if ($revisions->pager->next_page) { |
102 |
<% Jifty->web->link( |
<% Jifty->web->link( |
103 |
label => "Next", |
label => "Next", |
104 |
onclick => { args => { page => $revisions->pager->next_page } } |
onclick => { args => { |
105 |
|
page => $revisions->pager->next_page, |
106 |
|
author => $author, |
107 |
|
show_actions => $show_actions, |
108 |
|
} } |
109 |
) %> |
) %> |
110 |
% } |
% } |
111 |
|
|