/[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

Annotation of /trunk/web/templates/users

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (hide 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 dpavlin 31 <%args>
2     $users
3     </%args>
4     <&|/_elements/wrapper&>
5    
6 dpavlin 40 % if (not Jifty->web->current_user->id) {
7     <% Jifty->web->redirect( '/login/users' ) %>
8     % } else {
9    
10 dpavlin 31 <ul>
11     % while (my $u = $users->next) {
12     <dt><% $u->name %> <tt><% $u->email %></tt>
13 dpavlin 46 <dd>role:
14     <%
15     $u->admin ? 'admin' :
16     ( $u->can_import ? 'import request' : 'user' )
17     %>
18 dpavlin 51 <dd>Landscapes:
19     <% join(", ",sort map { $_->landscape->name } @{$u->landscapes->items_array_ref}) %>
20     [<% $u->landscapes->count %>]
21 dpavlin 43
22     % if (Jifty->web->current_user->admin) {
23     <% Jifty->web->link( label => 'edit', url => '/user/' .$u->id ) %>
24     % }
25    
26 dpavlin 31 % }
27 dpavlin 39 </ul>
28 dpavlin 31
29 dpavlin 40 % }
30    
31 dpavlin 31 </&>

  ViewVC Help
Powered by ViewVC 1.1.26