31 |
}]; |
}]; |
32 |
}; |
}; |
33 |
|
|
34 |
|
param branch => |
35 |
|
label is 'In branch', |
36 |
|
render as 'combobox', |
37 |
|
available are defer { |
38 |
|
my $branches = SVNBrowser::Model::BranchCollection->new; |
39 |
|
$branches->column( |
40 |
|
column => 'path', |
41 |
|
function => 'distinct', |
42 |
|
); |
43 |
|
$branches->unlimit; |
44 |
|
[{ |
45 |
|
display_from => 'path', |
46 |
|
value_from => 'path', |
47 |
|
collection => $branches, |
48 |
|
}]; |
49 |
|
}; |
50 |
|
|
51 |
|
param show_actions => |
52 |
|
label is 'Show file actions', |
53 |
|
render as 'checkbox'; |
54 |
|
|
55 |
|
param page => |
56 |
|
label is 'Current page'; |
57 |
|
|
58 |
|
param per_page => |
59 |
|
label is 'Commits on page', |
60 |
|
render as 'Select', |
61 |
|
available are qw( 10 20 30 50 100 ); |
62 |
|
|
63 |
|
param from_date => |
64 |
|
label is 'From date', |
65 |
|
render as 'Date'; |
66 |
|
|
67 |
|
param to_date => |
68 |
|
label is 'To date', |
69 |
|
render as 'Date'; |
70 |
|
|
71 |
|
param search => |
72 |
|
label is 'Search in messages'; |
73 |
|
|
74 |
}; |
}; |
75 |
|
|
76 |
sub sticky_on_success { 1; } |
sub sticky_on_success { 1; } |
83 |
my $self = shift; |
my $self = shift; |
84 |
|
|
85 |
my $author = $self->argument_value('author'); |
my $author = $self->argument_value('author'); |
86 |
warn "author: $author\n"; |
my $msg = ''; |
87 |
|
$msg .= "Showing only commits for $author" if ($author); |
88 |
$self->result->message('Success'); |
$msg .= ( $msg ? ' and file actions' : 'Showing file actions for each commit' ) if ( $self->argument_value('show_actions') ); |
89 |
|
$self->result->message($msg) if ($msg); |
90 |
|
|
91 |
return 1; |
return 1; |
92 |
} |
} |