--- trunk/share/web/templates/list 2006/12/17 15:05:20 39
+++ trunk/share/web/templates/list 2007/02/08 22:18:00 51
@@ -1,9 +1,21 @@
<%args>
-$filter
-$next
+$next => undef
%args>
<%init>
+my $filter = Jifty->web->new_action(
+ class => 'Filter',
+ moniker => 'filter_list',
+ arguments => { %ARGS },
+);
+
+if (! $next) {
+ $filter->argument_values({ show_actions => 1 });
+ $filter->run;
+}
+
+#use Data::Dump qw/dump/;
+#warn "ARGS = ", dump( %ARGS );
%init>
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &>
@@ -12,6 +24,7 @@
<% $filter->form_field('author') %>
<% $filter->form_field('branch') %>
+<% $filter->form_field('rel_path') %>
<% $filter->form_field('search') %>
@@ -27,33 +40,15 @@
% if ( $filter->result and my $revisions = $filter->result->content('revisions') ) {
-% my $actions = SVNBrowser::Model::ActionCollection->new();
% while (my $r = $revisions->next) {
- - <% Jifty->web->tangent(
- url => '/rev/' . $r->revision,
- label => $r->revision,
- continuation => $next,
- ) %>
- <% $r->author %>
- <% $r->commit_date %>
-
- -
-
<% $r->message %>
-% if ($filter->argument_value('show_actions')) {
-
-% $actions->unlimit;
-% $actions->limit( column => 'revision', value => $r->revision );
-% while (my $a = $actions->next) {
-% my $full_path = $a->branch . $a->rel_path ;
- - <% $a->type %> <% $full_path %>
- <% Jifty->web->tangent( url => '/rev/' . $r->revision . $full_path, label => 'diff', continuation => $next ) %>
-
-% }
-
-% }
-
-
+ <& /actions,
+ revision => $r->revision,
+ rel_path => $filter->argument_value('rel_path'),
+ next => $next,
+ show_actions => $filter->argument_value('show_actions'),
+ r => $r
+ &>
% }