1 |
<%args> |
<%args> |
|
$filter |
|
2 |
$next |
$next |
3 |
</%args> |
</%args> |
4 |
|
|
5 |
<%init> |
<%init> |
6 |
|
my $filter = Jifty->web->new_action( |
7 |
|
class => 'Filter', |
8 |
|
moniker => 'filter_list', |
9 |
|
arguments => { %ARGS }, |
10 |
|
); |
11 |
</%init> |
</%init> |
12 |
|
|
13 |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
<&| /_elements/wrapper, title => "SVN Reporitory Browser" &> |
31 |
|
|
32 |
% if ( $filter->result and my $revisions = $filter->result->content('revisions') ) { |
% if ( $filter->result and my $revisions = $filter->result->content('revisions') ) { |
33 |
|
|
|
% my $actions = SVNBrowser::Model::ActionCollection->new(); |
|
34 |
<dl> |
<dl> |
35 |
% while (my $r = $revisions->next) { |
% while (my $r = $revisions->next) { |
36 |
<dt><% Jifty->web->tangent( |
<& /actions, revision => $r->revision, next => $next, show_actions => $filter->argument_value('show_actions'), r => $r &> |
|
url => '/rev/' . $r->revision, |
|
|
label => $r->revision, |
|
|
continuation => $next, |
|
|
) %> |
|
|
<span class="author"><% $r->author %></span> |
|
|
<span class="commit_date"><% $r->commit_date %></span> |
|
|
</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', continuation => $next ) %> |
|
|
</tt></li> |
|
|
% } |
|
|
</ul> |
|
|
% } |
|
|
|
|
|
</dd> |
|
37 |
% } |
% } |
38 |
</dl> |
</dl> |
39 |
|
|