<%= render 'admin_panel/sidebar_nav' %>
<%= bootstrap_flash %> <% @users.each do |user| %>
<% if user.avatar.file != nil %> <%= image_tag user.avatar.thumb.to_s, :class => 'img-circle' %> <% else %> <%= image_tag "user.png", size: "50x50", :class => 'img-circle' %> <% end %>

<%= user.full_name %>

<%= user.email %>

<%= user.sign_in_count %> <%= t "admin_panel.logins" %>
<% if user.admin %>
Admin
<% end %>
<% if !user.admin %> <%= link_to (t 'admin_panel.make_admin'), make_admin_path(user.id), class: 'btn btn-mini', style: 'width: 100px; margin-top: 6px; line-height: 17px;' %> <% else %> <%= link_to (t 'admin_panel.unmake_admin'), make_admin_path(user.id), class: 'btn btn-mini btn-danger', style: 'width: 100px; margin-top: 6px; line-height: 17px;' %> <% end %>
<% end %>