1 |
<%args> |
<%args> |
2 |
$page => 1 |
$page => 1 |
3 |
|
|
4 |
|
$author => undef; |
5 |
|
|
6 |
</%args> |
</%args> |
7 |
|
|
8 |
<%init> |
<%init> |
9 |
|
my $filter = Jifty->web->new_action( |
10 |
|
class => 'Filter', |
11 |
|
moniker => 'filer_list', |
12 |
|
); |
13 |
|
|
14 |
my $revisions = SVNBrowser::Model::RevisionCollection->new(); |
my $revisions = SVNBrowser::Model::RevisionCollection->new(); |
15 |
$revisions->unlimit(); |
|
16 |
|
$author ||= $filter->argument_value('author'); |
17 |
|
|
18 |
|
if ($author) { |
19 |
|
$revisions->limit( |
20 |
|
column => 'author', |
21 |
|
value => $author, |
22 |
|
); |
23 |
|
} else { |
24 |
|
$revisions->unlimit(); |
25 |
|
} |
26 |
$revisions->order_by({ column => 'commit_date', order => 'desc' }); |
$revisions->order_by({ column => 'commit_date', order => 'desc' }); |
27 |
$revisions->set_page_info( |
$revisions->set_page_info( |
28 |
current_page => $page, |
current_page => $page, |
29 |
per_page => 50, |
per_page => 20, |
30 |
); |
); |
31 |
$revisions->goto_first_item; |
$revisions->goto_first_item; |
32 |
|
|
33 |
|
|
34 |
|
my $actions = SVNBrowser::Model::ActionCollection->new(); |
35 |
|
|
36 |
</%init> |
</%init> |
37 |
|
|
38 |
<&| /_elements/wrapper, title => "Statistics" &> |
<&| /_elements/wrapper, title => "Statistics" &> |
39 |
|
|
40 |
|
<% Jifty->web->form->start %> |
41 |
|
<% $filter->form_field('author', default_value => $author ) %> |
42 |
|
<% $filter->button( label => 'Show just this commiter' ) %> |
43 |
|
<% Jifty->web->form->end %> |
44 |
|
|
45 |
<%perl> |
<%perl> |
46 |
if (my $nr = $revisions->pager->total_entries) { |
if (my $nr = $revisions->pager->total_entries) { |
47 |
$m->out("Found $nr revisions"); |
$m->out("Found $nr revisions"); |
60 |
<span class="commit_date"><% $r->commit_date %></span> |
<span class="commit_date"><% $r->commit_date %></span> |
61 |
</dt> |
</dt> |
62 |
<dd> |
<dd> |
63 |
<pre> |
<pre class="commit_message"><% $r->message %></pre> |
64 |
<% $r->message %> |
<ul class="paths"> |
65 |
</pre> |
% $actions->limit( column => 'revision', value => $r->revision ); |
66 |
|
% while (my $a = $actions->next) { |
67 |
|
<li><tt><% $a->type %> <% $a->branch %> <% $a->rel_path %></tt></li> |
68 |
|
% } |
69 |
|
</ul> |
70 |
|
|
71 |
</dd> |
</dd> |
72 |
% } |
% } |
73 |
</dl> |
</dl> |