/[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 40 - (show annotations)
Sat May 27 22:09:29 2006 UTC (17 years, 11 months ago) by dpavlin
File size: 477 byte(s)
redirect users to login form (if needed) and return to same page
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(", ",map { $_->source->name } @{$u->sources->items_array_ref}) %>
16 [<% $u->sources->count %>]
17 <% Jifty->web->link( label => 'edit', url => '/user/' .$u->id ) %>
18 % }
19 </ul>
20
21 % }
22
23 </&>

  ViewVC Help
Powered by ViewVC 1.1.26