/[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 5 by dpavlin, Tue Dec 5 15:08:46 2006 UTC revision 13 by dpavlin, Tue Dec 5 23:32:32 2006 UTC
# Line 31  use Jifty::Action schema { Line 31  use Jifty::Action schema {
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  };  };
47    
48  sub sticky_on_success { 1; }  sub sticky_on_success { 1; }
# Line 43  sub take_action { Line 55  sub take_action {
55      my $self = shift;      my $self = shift;
56            
57          my $author = $self->argument_value('author');          my $author = $self->argument_value('author');
58          warn "author: $author\n";          my $msg = '';
59                $msg .= "Showing only commits for $author" if ($author);
60      $self->result->message('Success');          $msg .= ( $msg ? ' and file actions' : ' File actions' ) if ( $self->argument_value('show_actions') );
61        $self->result->message($msg) if ($msg);
62            
63      return 1;      return 1;
64  }  }

Legend:
Removed from v.5  
changed lines
  Added in v.13

  ViewVC Help
Powered by ViewVC 1.1.26