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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 39 - (show annotations)
Sun Dec 17 15:05:20 2006 UTC (17 years, 4 months ago) by dpavlin
File size: 2021 byte(s)
implemented continuation *after* take_action so that we can return to page
with results
1 <%args>
2 $filter
3 $next
4 </%args>
5
6 <%init>
7 </%init>
8
9 <&| /_elements/wrapper, title => "SVN Reporitory Browser" &>
10
11 <% Jifty->web->form->start %>
12
13 <% $filter->form_field('author') %>
14 <% $filter->form_field('branch') %>
15 <% $filter->form_field('search') %>
16
17 <div class="inline">
18 <% $filter->form_field('from_date') %>
19 <% $filter->form_field('to_date') %>
20 <% $filter->form_field('per_page') %>
21 <% $filter->form_field('show_actions') %>
22 </div>
23
24 <div style="clear: left">
25 <% $filter->button( label => 'Filter commits' ) %>
26 </div>
27
28 % if ( $filter->result and my $revisions = $filter->result->content('revisions') ) {
29
30 % my $actions = SVNBrowser::Model::ActionCollection->new();
31 <dl>
32 % while (my $r = $revisions->next) {
33 <dt><% Jifty->web->tangent(
34 url => '/rev/' . $r->revision,
35 label => $r->revision,
36 continuation => $next,
37 ) %>
38 <span class="author"><% $r->author %></span>
39 <span class="commit_date"><% $r->commit_date %></span>
40 </dt>
41 <dd>
42 <pre class="commit_message"><% $r->message %></pre>
43 % if ($filter->argument_value('show_actions')) {
44 <ul class="actions">
45 % $actions->unlimit;
46 % $actions->limit( column => 'revision', value => $r->revision );
47 % while (my $a = $actions->next) {
48 % my $full_path = $a->branch . $a->rel_path ;
49 <li><tt class="action-<% $a->type %>"><% $a->type %> <% $full_path %>
50 <% Jifty->web->tangent( url => '/rev/' . $r->revision . $full_path, label => 'diff', continuation => $next ) %>
51 </tt></li>
52 % }
53 </ul>
54 % }
55
56 </dd>
57 % }
58 </dl>
59
60 % if ($revisions->pager->previous_page) {
61 <% $filter->button(
62 label => "&lt;&lt;",
63 escape_label => 0,
64 arguments => {
65 page => $revisions->pager->previous_page,
66 }
67 ) %>
68 % }
69
70 % if ($revisions->pager->last_page > 1) {
71 page <% $revisions->pager->current_page %> of <% $revisions->pager->last_page %>
72 % }
73
74 % if ($revisions->pager->next_page) {
75 <% $filter->button(
76 label => "&gt;&gt;",
77 escape_label => 0,
78 arguments => {
79 page => $revisions->pager->next_page,
80 }
81 ) %>
82 % }
83
84 <!-- no $revisions -->
85 % }
86
87 <% Jifty->web->form->end %>
88
89 </&>

  ViewVC Help
Powered by ViewVC 1.1.26