1 |
<%args> |
<%args> |
2 |
$page => 1 |
$page => undef; |
3 |
|
|
4 |
$author => undef; |
$author => undef; |
5 |
|
|
21 |
|
|
22 |
$author ||= $filter->argument_value('author'); |
$author ||= $filter->argument_value('author'); |
23 |
$show_actions ||= $filter->argument_value('show_actions'); |
$show_actions ||= $filter->argument_value('show_actions'); |
24 |
|
$page ||= $filter->argument_value('page'); |
25 |
|
|
26 |
if ($author) { |
if ($author) { |
27 |
$revisions->limit( |
$revisions->limit( |
34 |
$revisions->order_by({ column => 'commit_date', order => 'desc' }); |
$revisions->order_by({ column => 'commit_date', order => 'desc' }); |
35 |
$revisions->set_page_info( |
$revisions->set_page_info( |
36 |
current_page => $page, |
current_page => $page, |
37 |
per_page => $show_actions ? 5 : 20, |
per_page => 10, |
38 |
); |
); |
39 |
$revisions->goto_first_item; |
$revisions->goto_first_item; |
40 |
|
|
43 |
|
|
44 |
</%init> |
</%init> |
45 |
|
|
46 |
<&| /_elements/wrapper, title => "Statistics" &> |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
47 |
|
|
48 |
<% Jifty->web->form->start %> |
<% Jifty->web->form->start %> |
49 |
<% $filter->form_field('author', default_value => $author ) %> |
<% $filter->form_field('author', default_value => $author ) %> |
50 |
<% $filter->button( label => 'Show just this commiter' ) %> |
<% $filter->button( label => 'Show just this commiter' ) %> |
51 |
<% $filter->form_field('show_actions', default_value => $show_actions ) %> |
<% $filter->form_field('show_actions', default_value => $show_actions ) %> |
|
<% Jifty->web->form->end %> |
|
52 |
|
|
53 |
<%perl> |
<%perl> |
54 |
if (my $nr = $revisions->pager->total_entries) { |
if (my $nr = $revisions->pager->total_entries) { |
83 |
</dl> |
</dl> |
84 |
|
|
85 |
% if ($revisions->pager->previous_page) { |
% if ($revisions->pager->previous_page) { |
86 |
<% Jifty->web->link( |
<% $filter->button( |
87 |
label => "Previous", |
label => "<<", |
88 |
onclick => |
escape_label => 0, |
89 |
{ args => { |
arguments => { |
90 |
page => $revisions->pager->previous_page, |
page => $revisions->pager->previous_page, |
91 |
author => $author, |
} |
|
show_actions => $show_actions, |
|
|
} } |
|
92 |
) %> |
) %> |
93 |
% } |
% } |
94 |
|
|
97 |
% } |
% } |
98 |
|
|
99 |
% if ($revisions->pager->next_page) { |
% if ($revisions->pager->next_page) { |
100 |
<% Jifty->web->link( |
<% $filter->button( |
101 |
label => "Next", |
label => ">>", |
102 |
onclick => { args => { |
escape_label => 0, |
103 |
|
arguments => { |
104 |
page => $revisions->pager->next_page, |
page => $revisions->pager->next_page, |
105 |
author => $author, |
} |
|
show_actions => $show_actions, |
|
|
} } |
|
106 |
) %> |
) %> |
107 |
% } |
% } |
108 |
|
|
109 |
</&> |
<% Jifty->web->form->end %> |
110 |
|
|
111 |
|
</&> |