1 |
<%args> |
<%args> |
2 |
|
$next => undef |
3 |
</%args> |
</%args> |
4 |
|
|
5 |
<%init> |
<%init> |
6 |
my $filter = Jifty->web->new_action( |
my $filter = Jifty->web->new_action( |
7 |
class => 'Filter', |
class => 'Filter', |
8 |
moniker => 'filter_list', |
moniker => 'filter_list', |
9 |
|
arguments => { %ARGS }, |
10 |
); |
); |
11 |
|
|
12 |
|
#use Data::Dump qw/dump/; |
13 |
|
#warn "ARGS = ", dump( %ARGS ); |
14 |
</%init> |
</%init> |
15 |
|
|
16 |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
19 |
|
|
20 |
<% $filter->form_field('author') %> |
<% $filter->form_field('author') %> |
21 |
<% $filter->form_field('branch') %> |
<% $filter->form_field('branch') %> |
22 |
|
<% $filter->form_field('rel_path') %> |
23 |
<% $filter->form_field('search') %> |
<% $filter->form_field('search') %> |
24 |
|
|
25 |
<div class="inline"> |
<div class="inline"> |
31 |
|
|
32 |
<div style="clear: left"> |
<div style="clear: left"> |
33 |
<% $filter->button( label => 'Filter commits' ) %> |
<% $filter->button( label => 'Filter commits' ) %> |
|
|
|
|
<%perl> |
|
|
</%perl> |
|
34 |
</div> |
</div> |
35 |
|
|
36 |
% if ( $filter->result and my $revisions = $filter->result->content('revisions') ) { |
% if ( $filter->result and my $revisions = $filter->result->content('revisions') ) { |
37 |
|
|
|
% my $actions = SVNBrowser::Model::ActionCollection->new(); |
|
38 |
<dl> |
<dl> |
39 |
% while (my $r = $revisions->next) { |
% while (my $r = $revisions->next) { |
40 |
<dt><% Jifty->web->tangent( |
<& /actions, |
41 |
url => '/rev/' . $r->revision, |
revision => $r->revision, |
42 |
label => $r->revision, |
rel_path => $filter->argument_value('rel_path'), |
43 |
) %> |
next => $next, |
44 |
<span class="author"><% $r->author %></span> |
show_actions => $filter->argument_value('show_actions'), |
45 |
<span class="commit_date"><% $r->commit_date %></span> |
r => $r |
46 |
</dt> |
&> |
|
<dd> |
|
|
<pre class="commit_message"><% $r->message %></pre> |
|
|
% if ($filter->argument_value('show_actions')) { |
|
|
<ul class="actions"> |
|
|
% $actions->unlimit; |
|
|
% $actions->limit( column => 'revision', value => $r->revision ); |
|
|
% while (my $a = $actions->next) { |
|
|
% my $full_path = $a->branch . $a->rel_path ; |
|
|
<li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %> |
|
|
<% Jifty->web->tangent( url => '/rev/' . $r->revision . $full_path, label => 'diff' ) %> |
|
|
</tt></li> |
|
|
% } |
|
|
</ul> |
|
|
% } |
|
|
|
|
|
</dd> |
|
47 |
% } |
% } |
48 |
</dl> |
</dl> |
49 |
|
|