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

Contents of /trunk/web/templates/landscapes

Parent Directory Parent Directory | Revision Log Revision Log


Revision 56 - (show annotations)
Mon Jun 5 15:05:58 2006 UTC (17 years, 11 months ago) by dpavlin
File size: 693 byte(s)
added landscapes list for admins
1 <%init>
2 my $landscapes = Transports::Model::LandscapeCollection->new();
3 $landscapes->unlimit;
4 </%init>
5 <&|/_elements/wrapper&>
6
7 % if (not Jifty->web->current_user->id) {
8 <% Jifty->web->redirect( '/login/landscapes' ) %>
9 % } else {
10
11 <ul>
12 % while (my $l = $landscapes->next) {
13 <dt><% $l->name %>
14
15 % if (Jifty->web->current_user->admin) {
16 <% Jifty->web->link( label => 'edit', url => '/landscape/' .$l->id ) %>
17 % }
18
19 <dd>Source systems:
20 <% join(", ",sort map { $_->name } @{$l->sources->items_array_ref}) %>
21 [<% $l->sources->count %>]
22
23 <dd>Destination systems:
24 <% join(", ",sort map { $_->name } @{$l->destinations->items_array_ref}) %>
25 [<% $l->destinations->count %>]
26
27 % }
28 </ul>
29
30 % }
31
32 </&>

  ViewVC Help
Powered by ViewVC 1.1.26