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

Diff of /trunk/web/templates/users/all

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 91 by dpavlin, Tue Jun 13 22:46:59 2006 UTC revision 92 by dpavlin, Fri Jun 23 12:36:26 2006 UTC
# Line 8  $users->unlimit; Line 8  $users->unlimit;
8    
9  % while (my $u = $users->next) {  % while (my $u = $users->next) {
10  <div class="float-left boxed boxed-gray">  <div class="float-left boxed boxed-gray">
11  % if (Jifty->web->current_user->admin) {  % if (Jifty->web->current_user->admin || Jifty->web->current_user->id == $u->id ) {
12          <% Jifty->web->link(          <% Jifty->web->link(
13                  label => $u->name,                  label => $u->name,
14                  onclick => {                  onclick => {
# Line 42  on: Line 42  on:
42  </div>  </div>
43    
44  % if (Jifty->web->current_user->admin) {  % if (Jifty->web->current_user->admin) {
 <div style="clear:left">  
   
 <% Jifty->web->link( label => 'Add new user', onclick => {  
         replace_with => '/users/form',  
         region => 'users',  
         args => { user_id => 0 },  
 } ) %>  
45    
46    <div class="cl">
47    <% Jifty->web->link(
48            label => 'Add new user',
49            onclick => {
50                    replace_with => '/users/form',
51                    args => { user_id => 0 },
52            }
53    ) %>
54  </div>  </div>
55    
56  % }  % }

Legend:
Removed from v.91  
changed lines
  Added in v.92

  ViewVC Help
Powered by ViewVC 1.1.26