/[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 43 - (show annotations)
Sat May 27 23:40:27 2006 UTC (17 years, 11 months ago) by dpavlin
File size: 535 byte(s)
show edit options only to admin users, all transports now show just
transports for current user if user isn't admin
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: <% $u->admin ? 'admin' : 'user' %>
14 <dd>systems:
15 <% join(", ",sort map { $_->source->name } @{$u->sources->items_array_ref}) %>
16 [<% $u->sources->count %>]
17
18 % if (Jifty->web->current_user->admin) {
19 <% Jifty->web->link( label => 'edit', url => '/user/' .$u->id ) %>
20 % }
21
22 % }
23 </ul>
24
25 % }
26
27 </&>

  ViewVC Help
Powered by ViewVC 1.1.26