Site para o estudio Velvet Design em São Paulo. http://velvetdesign.com.br

users.html.erb 1.9KB

    <div class="row"> <%= render 'admin_panel/sidebar_nav' %> <div class="span9"> <div class="page-header"> <h1><i class="fa fa-users"></i> <%= t "admin_panel.users" %></h1> </div> <%= bootstrap_flash %> <% @users.each do |user| %> <div class="media thumbnail" style="padding: 10px; padding-bottom: 5px;"> <span class="pull-left"> <% 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 %> </span> <div class="media-body pull-left" style="min-width: 180px;"> <h4 class="media-heading"><%= user.full_name %></h4> <p><%= user.email %></p> </div> <div class="pull-left" style=" padding: 5px; padding-bottom: 0px; padding-top: 0px; margin-top: -6px; text-align: center; margin-left: 25px;"> <span class="summary" style="margin-bottom: 0px;"> <span class="count"><%= user.sign_in_count %></span> <span><%= t "admin_panel.logins" %></span></span> </div> <% if user.admin %> <div class="pull-left" style=" padding: 5px; padding-bottom: 0px; padding-top: 0px; margin-top: -6px; text-align: center; margin-left: 25px;"> <span class="summary" style="margin-bottom: 0px;"> <span class="count"> <i class="icon-user"></i> </span> <span>Admin</span></span> </div> <% end %> <div class="pull-right"> <% 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 %> </div> </div> <% end %> </div> </div>