52 |
}]; |
}]; |
53 |
}; |
}; |
54 |
|
|
55 |
|
param rel_path => |
56 |
|
label is 'Path begins with'; |
57 |
|
|
58 |
param show_actions => |
param show_actions => |
59 |
label is 'Show file actions', |
label is 'Show file actions', |
60 |
render as 'checkbox'; |
render as 'checkbox', |
61 |
|
default is 1; |
62 |
|
|
63 |
param page => |
param page => |
64 |
label is 'Current page'; |
label is 'Current page'; |
66 |
param per_page => |
param per_page => |
67 |
label is 'Commits on page', |
label is 'Commits on page', |
68 |
render as 'Select', |
render as 'Select', |
69 |
available are qw( 10 20 30 50 100 ); |
available are qw( 10 20 30 50 100 ), |
70 |
|
default is 10; |
71 |
|
|
72 |
param from_date => |
param from_date => |
73 |
label is 'From date', |
label is 'From date', |
121 |
$revisions->limit( alias => $rev_branches, column => 'branch', value => $b->id ); |
$revisions->limit( alias => $rev_branches, column => 'branch', value => $b->id ); |
122 |
} |
} |
123 |
|
|
124 |
|
if ( my $rel_path = $self->argument_value('rel_path') ) { |
125 |
|
my $rev_actions = $revisions->join( |
126 |
|
alias1 => 'main', column1 => 'revision', |
127 |
|
table2 => 'actions', column2 => 'revision' |
128 |
|
); |
129 |
|
$revisions->limit( alias => $rev_actions, column => 'rel_path', value => $rel_path, operator => 'STARTSWITH' ); |
130 |
|
} |
131 |
|
|
132 |
$revisions->order_by({ column => 'commit_date', order => 'desc' }); |
$revisions->order_by({ column => 'commit_date', order => 'desc' }); |
133 |
$revisions->set_page_info( |
$revisions->set_page_info( |
134 |
current_page => $self->argument_value('page'), |
current_page => $self->argument_value('page'), |
135 |
per_page => $self->argument_value('per_page'), |
per_page => $self->argument_value('per_page') || 10, |
136 |
); |
); |
137 |
|
|
138 |
warn "take_action SQL: ", $revisions->build_select_query; |
warn "take_action SQL: ", $revisions->build_select_query; |