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

Annotation of /branches/filter-action/share/web/templates/list

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.26