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

Annotation of /trunk/share/web/templates/list

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.26