/[SVNBrowser]/trunk/lib/SVNBrowser/Action/Filter.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/SVNBrowser/Action/Filter.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 10 by dpavlin, Tue Dec 5 17:49:46 2006 UTC revision 26 by dpavlin, Sun Dec 10 00:01:33 2006 UTC
# Line 31  use Jifty::Action schema { Line 31  use Jifty::Action schema {
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 =>          param show_actions =>
52                  label is 'Show file actions',                  label is 'Show file actions',
53                  render as 'checkbox';                  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; }
# Line 49  sub take_action { Line 85  sub take_action {
85          my $author = $self->argument_value('author');          my $author = $self->argument_value('author');
86          my $msg = '';          my $msg = '';
87          $msg .= "Showing only commits for $author" if ($author);          $msg .= "Showing only commits for $author" if ($author);
88          $msg .= ( $msg ? ' and file actions' : ' File actions' ) if ( $self->argument_value('show_actions') );          $msg .= ( $msg ? ' and file actions' : 'Showing file actions for each commit' ) if ( $self->argument_value('show_actions') );
89      $self->result->message($msg) if ($msg);      $self->result->message($msg) if ($msg);
90            
91      return 1;      return 1;

Legend:
Removed from v.10  
changed lines
  Added in v.26

  ViewVC Help
Powered by ViewVC 1.1.26