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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.26