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."); |
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 |
|
|