/[SVNBrowser]/trunk/share/web/templates/actions
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/share/web/templates/actions

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 44 by dpavlin, Tue Feb 6 00:26:36 2007 UTC revision 47 by dpavlin, Tue Feb 6 23:28:48 2007 UTC
# Line 3  $revision Line 3  $revision
3  $next => undef  $next => undef
4  $show_actions => 0  $show_actions => 0
5  $r => undef  $r => undef
6    $rel_path => undef
7  </%args>  </%args>
8  <%init>  <%init>
9    
10  my $actions = SVNBrowser::Model::ActionCollection->new();  my $actions = SVNBrowser::Model::ActionCollection->new();
11  $actions->unlimit;  $actions->unlimit;
12  $actions->limit( column => 'revision', value => $revision );  $actions->limit( column => 'revision', value => $revision );
13    $actions->limit( column => 'rel_path', value => $rel_path, operator => 'STARTSWITH' ) if ($rel_path);
14    
15  if (! $r) {  if (! $r) {
16          warn "loading revision $revision\n";          warn "loading revision $revision\n";
# Line 36  if (! $r) { Line 38  if (! $r) {
38  % if ($show_actions) {  % if ($show_actions) {
39          <ul class="actions">          <ul class="actions">
40  %               while (my $a = $actions->next) {  %               while (my $a = $actions->next) {
41  %                       my $full_path = $a->branch . $a->rel_path ;                          <li><tt class="action-<% $a->type %>"><% $a->type %> <% $a->branch %><% Jifty->web->link(
42                          <li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %>                                  label => $a->rel_path,
43                                    parameters => {
44                                            rel_path => $a->rel_path,
45                                    }
46                            ) %>
47  % if ($next) {  % if ($next) {
48    %                       my $full_path = $a->branch . $a->rel_path ;
49                          <% Jifty->web->tangent( url => '/rev/' . $revision . $full_path, label => 'diff', continuation => $next ) %>                          <% Jifty->web->tangent( url => '/rev/' . $revision . $full_path, label => 'diff', continuation => $next ) %>
50  % }  % }
51                          </tt></li>                          </tt></li>

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

  ViewVC Help
Powered by ViewVC 1.1.26