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

  ViewVC Help
Powered by ViewVC 1.1.26