%h2 Who's home

.row
  - @users.each do |user|
    .col-sm-4
      .panel{class: user.at_home? ? :"panel-success" : :"panel-danger"}
        .panel-heading
          %h3.panel-title= user.uid
        .panel-body
          - if user.mobile_devices.empty?
            %p No mobile devices
          - else
            %ul.list-unstyled
              - user.mobile_devices.each do |device|
                %li
                  %strong= device.name
                  seen
                  = time_ago_in_words device.last_seen_at
                  ago


%h2 Who's home

.row
  - @users.each do |user|
    .col-sm-4
      .panel{class: user.at_home? ? :"panel-success" : :"panel-danger"}
        .panel-heading.clearfix
          %h3.panel-title.pull-left= user.uid
          .btn-group.btn-group-xs.pull-right
            %a.btn.btn-default.button-xs{href: user_devices_path(user.uid)}
              %span.glyphicon.glyphicon-list
        .panel-body
          - if user.mobile_devices.empty?
            %p No mobile devices
          - else
            %ul.list-unstyled
              - user.mobile_devices.each do |device|
                %li
                  %strong= device.name
                  seen
                  = time_ago_in_words device.last_seen_at
                  ago


Add link to device list next to user in dashboard
Add link to device list next to user in dashboard
