  <h1 class="head">Benutzerverzeichnis</h1>
    <table>
      <tr>
        <th class="zeile0 t_head" width="200" align="left">Benutzername</th>
        <th class="zeile0 t_head" width="200" align="left">Benutzerrolle</th>
        <th class="zeile0 t_head">Aktion</th>
        <th class="zeile0 t_head">Status</th>
      </tr>

    <% @users.each do |user| %>
      <% zeile %>
      <tr>
        <td class="zeile<%= $x %>"><%= user.loginname %></td>
        <td class="zeile<%= $x %>" id="role-view<%=  user.id %>">
          <%= render :partial => "role_btn", :locals => {:user => user} %>
        </td>
        <td class="zeile<%= $x %>" id="password-view<%=  user.id %>">
          <% if session[:user].is_admin? || user.admin_level == 0 || session[:user].id == user.id %>
            <%= render :partial => "pwd_btn", :locals => {:user => user} %>
          <% end %>
        </td>
        <td class="zeile<%= $x %>" id="status-view<%=  user.id %>" align="center">
            <%= render :partial => "status", :locals => {:user => user} %>
        </td>
      </tr>
    <% end %>
    <% zeile %>
    <tr>
      <td class="zeile<%= $x %>"><%= link_to image_tag('24-member-add.png',{:border => 0})+' Neuen Benutzer anlegen', :action => "new" %></td>
      <td class="zeile<%= $x %>"><%= link_to( image_tag('24-book-blue.png',{:border => 0})+' Benutzerrollen verwalten', :controller => 'teams') if session[:user].is_admin? %></td>
      <td class="zeile<%= $x %>"></td>
      <td class="zeile<%= $x %>"></td>
    </tr>
    </table>

    <br />

    
  </div>
