/[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 50 - (show annotations)
Thu Feb 8 21:58:17 2007 UTC (17 years, 2 months ago) by dpavlin
File size: 1626 byte(s)
run action if it's not activated allready (so that first page access have
results too...)
1 <%args>
2 $next => undef
3 </%args>
4
5 <%init>
6 my $filter = Jifty->web->new_action(
7 class => 'Filter',
8 moniker => 'filter_list',
9 arguments => { %ARGS },
10 );
11
12 $filter->run unless ($next);
13
14 #use Data::Dump qw/dump/;
15 #warn "ARGS = ", dump( %ARGS );
16 </%init>
17
18 <&| /_elements/wrapper, title => "SVN Reporitory Browser" &>
19
20 <% Jifty->web->form->start %>
21
22 <% $filter->form_field('author') %>
23 <% $filter->form_field('branch') %>
24 <% $filter->form_field('rel_path') %>
25 <% $filter->form_field('search') %>
26
27 <div class="inline">
28 <% $filter->form_field('from_date') %>
29 <% $filter->form_field('to_date') %>
30 <% $filter->form_field('per_page') %>
31 <% $filter->form_field('show_actions') %>
32 </div>
33
34 <div style="clear: left">
35 <% $filter->button( label => 'Filter commits' ) %>
36 </div>
37
38 % if ( $filter->result and my $revisions = $filter->result->content('revisions') ) {
39
40 <dl>
41 % while (my $r = $revisions->next) {
42 <& /actions,
43 revision => $r->revision,
44 rel_path => $filter->argument_value('rel_path'),
45 next => $next,
46 show_actions => $filter->argument_value('show_actions'),
47 r => $r
48 &>
49 % }
50 </dl>
51
52 % if ($revisions->pager->previous_page) {
53 <% $filter->button(
54 label => "&lt;&lt;",
55 escape_label => 0,
56 arguments => {
57 page => $revisions->pager->previous_page,
58 }
59 ) %>
60 % }
61
62 % if ($revisions->pager->last_page > 1) {
63 page <% $revisions->pager->current_page %> of <% $revisions->pager->last_page %>
64 % }
65
66 % if ($revisions->pager->next_page) {
67 <% $filter->button(
68 label => "&gt;&gt;",
69 escape_label => 0,
70 arguments => {
71 page => $revisions->pager->next_page,
72 }
73 ) %>
74 % }
75
76 <!-- no $revisions -->
77 % }
78
79 <% Jifty->web->form->end %>
80
81 </&>

  ViewVC Help
Powered by ViewVC 1.1.26