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

  ViewVC Help
Powered by ViewVC 1.1.26