52 |
}]; |
}]; |
53 |
}; |
}; |
54 |
|
|
55 |
|
param rel_path => |
56 |
|
label is 'File path', |
57 |
|
hint is 'enter beggining of file path to filter using it'; |
58 |
|
|
59 |
param show_actions => |
param show_actions => |
60 |
label is 'Show file actions', |
label is 'Show file actions', |
61 |
render as 'checkbox'; |
render as 'checkbox'; |
120 |
$revisions->limit( alias => $rev_branches, column => 'branch', value => $b->id ); |
$revisions->limit( alias => $rev_branches, column => 'branch', value => $b->id ); |
121 |
} |
} |
122 |
|
|
123 |
|
if ( my $rel_path = $self->argument_value('rel_path') ) { |
124 |
|
my $rev_actions = $revisions->join( |
125 |
|
alias1 => 'main', column1 => 'revision', |
126 |
|
table2 => 'actions', column2 => 'revision' |
127 |
|
); |
128 |
|
$revisions->limit( alias => $rev_actions, column => 'rel_path', value => $rel_path, operator => 'STARTSWITH' ); |
129 |
|
} |
130 |
|
|
131 |
$revisions->order_by({ column => 'commit_date', order => 'desc' }); |
$revisions->order_by({ column => 'commit_date', order => 'desc' }); |
132 |
$revisions->set_page_info( |
$revisions->set_page_info( |
133 |
current_page => $self->argument_value('page'), |
current_page => $self->argument_value('page'), |