/[transports]/trunk/web/templates/transports/table
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/web/templates/transports/table

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 97 by dpavlin, Fri Jun 23 20:55:21 2006 UTC revision 98 by dpavlin, Fri Jun 23 21:45:37 2006 UTC
# Line 34  $transports->set_page_info( Line 34  $transports->set_page_info(
34          per_page => 10,          per_page => 10,
35  );  );
36  if (my $nr = $transports->pager->total_entries) {  if (my $nr = $transports->pager->total_entries) {
37          $m->out("Showing $nr transports.")          $m->out("Found $nr transports, showing ",
38                    $transports->pager->first,
39                    "-",
40                    $transports->pager->last,
41            )
42    
43  } elsif ( Jifty->web->current_user->can_import ) {  } elsif ( Jifty->web->current_user->can_import ) {
44          $m->out("No transports waiting for import.");          $m->out("No transports waiting for import.");
# Line 46  sub filter_table { Line 50  sub filter_table {
50          my ($name, $val, $label, $url) = @_;          my ($name, $val, $label, $url) = @_;
51    
52          Jifty->web->link(          Jifty->web->link(
53                  label => ( $val ? '-' : '+' ) . " $label",                  label => ( $val ? '[-]' : '[+]' ) . $label,
54                  onclick => {                  onclick => {
55                          replace_with => '/transports/table',                          replace_with => '/transports/table',
56                          args => { $name => $val ? 0 : 1 },                          args => { $name => $val ? 0 : 1 },
57                  }                  }
58          );          );
59    
60  }  }
61    
62  </%init>  </%init>
63    
64    <div class="cl">
65    Columns:
66  <% filter_table('show_description', $show_description, 'description') %>  <% filter_table('show_description', $show_description, 'description') %>
67  <% filter_table('show_comment', $show_comment, 'import comment') %>  <% filter_table('show_comment', $show_comment, 'import comment') %>
68  % if (Jifty->web->current_user->can_import) {  % if (Jifty->web->current_user->can_import) {
69  <% filter_table('show_imported', $show_imported, 'imported transports') %>  <% filter_table('show_imported', $show_imported, 'imported transports') %>
70  % }  % }
71    </div>
72    
73  <%perl>  <%perl>
74    

Legend:
Removed from v.97  
changed lines
  Added in v.98

  ViewVC Help
Powered by ViewVC 1.1.26