/[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 46 by dpavlin, Mon Dec 18 10:51:50 2006 UTC revision 47 by dpavlin, Tue Feb 6 23:28:48 2007 UTC
# Line 52  use Jifty::Action schema { Line 52  use Jifty::Action schema {
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';
# Line 116  sub take_action { Line 120  sub take_action {
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'),

Legend:
Removed from v.46  
changed lines
  Added in v.47

  ViewVC Help
Powered by ViewVC 1.1.26