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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (show annotations)
Mon Jun 5 14:06:58 2006 UTC (17 years, 11 months ago) by dpavlin
File size: 589 byte(s)
added landscapes (collection of source and destination clients) to the mix
instead of specifing users for sources (and destinations which wasn't
implemented anyway)
1 <%args>
2 $users
3 </%args>
4 <&|/_elements/wrapper&>
5
6 % if (not Jifty->web->current_user->id) {
7 <% Jifty->web->redirect( '/login/users' ) %>
8 % } else {
9
10 <ul>
11 % while (my $u = $users->next) {
12 <dt><% $u->name %> <tt><% $u->email %></tt>
13 <dd>role:
14 <%
15 $u->admin ? 'admin' :
16 ( $u->can_import ? 'import request' : 'user' )
17 %>
18 <dd>Landscapes:
19 <% join(", ",sort map { $_->landscape->name } @{$u->landscapes->items_array_ref}) %>
20 [<% $u->landscapes->count %>]
21
22 % if (Jifty->web->current_user->admin) {
23 <% Jifty->web->link( label => 'edit', url => '/user/' .$u->id ) %>
24 % }
25
26 % }
27 </ul>
28
29 % }
30
31 </&>

  ViewVC Help
Powered by ViewVC 1.1.26