%fieldset
  %legend User Activity Summary
  .panel.panel-default
    %table.table.table-hover.table-condensed#asset_compliance
      %thead
        %tr
          %th.left Name
          %th.center External Id
          %th.right Most Recent Login
          %th.center Login Count
          %th.center Account Locked
          %th.center Outstanding Tasks
          %th.center
          %th.center
      %tbody
        - @organization.users.includes(:tasks).each do |u|
          %tr{:data => {:action_path => user_path(u)}}
            %td.left= u.name
            %td.center= u.external_id
            %td.right= format_as_date_time(u.last_sign_in_at)
            %td.center= format_as_integer(u.sign_in_count)
            %td.center= format_as_boolean(u.locked_at)
            %td.center= format_as_integer(u.tasks.where(:state => [:new, :started] ).count)
            %td.center
              %i.fa.fa-info-circle.text-info.popup-details{:data => {:title => "#{u.name}", :content => "#{raw render :partial => 'users/summary', :locals => {:user => u}}"}}
            %td.center
              = link_to new_user_message_path(current_user, to_user: u), :title => "Send #{u.first_name} a message" do
                %i.fa.fa-envelope

:javascript
  $('.popup-details').popover({
    trigger: 'hover',
    container: 'body',
    placement: 'left',
    animation: 'true',
    html: 'true'
  });

Move user login summary to core
Move user login summary to core
