31 |
}]; |
}]; |
32 |
}; |
}; |
33 |
|
|
34 |
|
param show_actions => |
35 |
|
label is 'Show file actions', |
36 |
|
render as 'checkbox'; |
37 |
|
|
38 |
|
param page => |
39 |
|
label is 'Current page'; |
40 |
|
|
41 |
|
param per_page => |
42 |
|
label is 'Commits on page', |
43 |
|
render as 'Select', |
44 |
|
available are qw( 10 20 30 50 100 ); |
45 |
|
|
46 |
|
param from_date => |
47 |
|
label is 'From date', |
48 |
|
render as 'Date'; |
49 |
|
|
50 |
|
param to_date => |
51 |
|
label is 'To date', |
52 |
|
render as 'Date'; |
53 |
|
|
54 |
|
param search => |
55 |
|
label is 'Search in messages'; |
56 |
|
|
57 |
}; |
}; |
58 |
|
|
59 |
sub sticky_on_success { 1; } |
sub sticky_on_success { 1; } |
66 |
my $self = shift; |
my $self = shift; |
67 |
|
|
68 |
my $author = $self->argument_value('author'); |
my $author = $self->argument_value('author'); |
69 |
warn "author: $author\n"; |
my $msg = ''; |
70 |
|
$msg .= "Showing only commits for $author" if ($author); |
71 |
$self->result->message("Showing only commits from $author"); |
$msg .= ( $msg ? ' and file actions' : 'Showing file actions for each commit' ) if ( $self->argument_value('show_actions') ); |
72 |
|
$self->result->message($msg) if ($msg); |
73 |
|
|
74 |
return 1; |
return 1; |
75 |
} |
} |