/[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

Contents of /trunk/share/web/templates/actions

Parent Directory Parent Directory | Revision Log Revision Log


Revision 44 - (show annotations)
Tue Feb 6 00:26:36 2007 UTC (17 years, 2 months ago) by dpavlin
File size: 1095 byte(s)
cleanup, use local svk repository
1 <%args>
2 $revision
3 $next => undef
4 $show_actions => 0
5 $r => undef
6 </%args>
7 <%init>
8
9 my $actions = SVNBrowser::Model::ActionCollection->new();
10 $actions->unlimit;
11 $actions->limit( column => 'revision', value => $revision );
12
13 if (! $r) {
14 warn "loading revision $revision\n";
15 $r = SVNBrowser::Model::Revision->new();
16 $r->load_by_cols( revision => $revision );
17 }
18
19 </%init>
20
21 <dt>
22 % if ($next) {
23 <% Jifty->web->tangent(
24 url => '/rev/' . $revision,
25 label => $revision,
26 continuation => $next,
27 ) %>
28 % } else {
29 <tt><% $revision %></tt>
30 % }
31 <span class="author"><% $r->author %></span>
32 <span class="commit_date"><% $r->commit_date %></span>
33 </dt>
34 <dd>
35 <pre class="commit_message"><% $r->message %></pre>
36 % if ($show_actions) {
37 <ul class="actions">
38 % while (my $a = $actions->next) {
39 % my $full_path = $a->branch . $a->rel_path ;
40 <li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %>
41 % if ($next) {
42 <% Jifty->web->tangent( url => '/rev/' . $revision . $full_path, label => 'diff', continuation => $next ) %>
43 % }
44 </tt></li>
45 % }
46 </ul>
47 % } # if $show_actions
48
49 </dd>
50

  ViewVC Help
Powered by ViewVC 1.1.26