/[transports]/trunk/web/templates/fragments/transports
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/fragments/transports

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

revision 42 by dpavlin, Sat May 27 17:23:34 2006 UTC revision 43 by dpavlin, Sat May 27 23:40:27 2006 UTC
# Line 3  $page => 1 Line 3  $page => 1
3  </%args>  </%args>
4  <%init>  <%init>
5  my $transports = Transports::Model::TransportCollection->new();  my $transports = Transports::Model::TransportCollection->new();
6  $transports->unlimit();  if (Jifty->web->current_user->admin) {
7            $transports->unlimit();
8    } else {
9            $transports->limit(
10                    column => 'created_by',
11                    value => Jifty->web->current_user->id,
12            )
13    }
14  $transports->order_by({ column => 'date' });  $transports->order_by({ column => 'date' });
15  $transports->set_page_info(  $transports->set_page_info(
16          current_page => $page,          current_page => $page,
# Line 19  $m->out("No transports found.") if ($tra Line 26  $m->out("No transports found.") if ($tra
26  <th>request nr</th>  <th>request nr</th>
27  <th>dependency</th>  <th>dependency</th>
28  <th>created by</th>  <th>created by</th>
29    % if (Jifty->web->current_user->admin) {
30  <th>&nbsp;</th>  <th>&nbsp;</th>
31    % }
32  </th>  </th>
33  </tr>  </tr>
34    
# Line 37  $m->out("No transports found.") if ($tra Line 46  $m->out("No transports found.") if ($tra
46      <em><% $t->created_by->name %></em>      <em><% $t->created_by->name %></em>
47  %  }  %  }
48  </td>  </td>
49    % if (Jifty->web->current_user->admin) {
50  <td><% Jifty->web->link( label => 'edit', url => '/edit/' . $t->id ) %></td>  <td><% Jifty->web->link( label => 'edit', url => '/edit/' . $t->id ) %></td>
51    % }
52  </tr>  </tr>
53  % }  % }
54  </table>  </table>

Legend:
Removed from v.42  
changed lines
  Added in v.43

  ViewVC Help
Powered by ViewVC 1.1.26