1 |
<%args> |
<&|/_elements/wrapper, title => 'Transports' &> |
2 |
$transports |
|
3 |
</%args> |
% if (not Jifty->web->current_user->id) { |
4 |
<&|/_elements/wrapper&> |
<% Jifty->web->redirect( '/login/transports' ) %> |
5 |
<table border="1" cellspacing="0" cellpadding="3"> |
% } else { |
6 |
<tr> |
|
7 |
<th>source</th> |
<% Jifty->web->region( |
8 |
<th>destination</th> |
name => "transports-table", |
9 |
<th>request nr</th> |
path => "/fragments/transports" |
10 |
<th>dependency</th> |
) %> |
|
<th>created by</th> |
|
|
</tr> |
|
11 |
|
|
|
% while (my $t = $transports->next) { |
|
|
<tr> |
|
|
<td><% $t->source->name %></td> |
|
|
<td><% $t->destination->name %></td> |
|
|
<td><tt><% $t->request_nr %></tt></td> |
|
|
<td> |
|
|
<% $t->client_dependent ? 'client' : 'none' %> |
|
|
</td> |
|
|
<td> |
|
|
% if ($t->created_by) { |
|
|
<em><% $t->created_by->name %></em> |
|
|
% } |
|
|
</td> |
|
|
</tr> |
|
12 |
% } |
% } |
13 |
</table> |
|
14 |
</&> |
</&> |