|
<%args> |
|
|
$transports |
|
|
</%args> |
|
1 |
<&|/_elements/wrapper&> |
<&|/_elements/wrapper&> |
|
<table> |
|
|
<tr> |
|
|
<th>source</th> |
|
|
<th>destination</th> |
|
|
<th>request nr</th> |
|
|
<th>dependency</th> |
|
|
<th>created by</th> |
|
|
<th> </th> |
|
|
</tr> |
|
2 |
|
|
3 |
% my $i = 0; |
<% Jifty->web->region( |
4 |
% while (my $t = $transports->next) { |
name => "transports-table", |
5 |
<tr class="<% ++$i % 2 == 0 ? 'alt' : '' %>"> |
path => "/fragments/transports" |
6 |
<td><% $t->source->name %></td> |
) %> |
7 |
<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> |
|
|
<td><a href="/edit/<% $t->id %>">edit</a></td> |
|
|
</tr> |
|
|
% } |
|
|
</table> |
|
8 |
</&> |
</&> |