= render :partial => "layouts/flash_msg"
%h3= _("Report Results by User")

- if @sb[:orphaned_records].blank?
  = render :partial => 'layouts/info_msg', :locals => {:message => _("No Records Found.")}
- else
  %table.table.table-striped.table-bordered
    %thead
      %tr
        %th.table-view-pf-select
        %th= _("Username")
        %th= _("Count")
    %tbody
      - @sb[:orphaned_records].each do |rec|
        %tr.no-hover
          - question = _("Are you sure you want to delete orphaned records for user '%{user}'?") % {:user => rec[:userid]}
          - onclick = remote_function(:url => {:action => 'orphaned_records_delete', :userid => rec[:userid]}, :confirm => question)

          %td.table-view-pf-select{:onclick => onclick, :title => _("Click to delete Orphaned Records for this user")}
            = image_tag(image_path('toolbars/delete.png'), :class => "rollover small")
          %td= h(rec[:userid])
          %td= h(rec[:count])

= render :partial => "layouts/flash_msg"
%h3= _("Report Results by User")

- if @sb[:orphaned_records].blank?
  = render :partial => 'layouts/info_msg', :locals => {:message => _("No Records Found.")}
- else
  %table.table.table-striped.table-bordered
    %thead
      %tr
        %th.table-view-pf-select
        %th= _("Username")
        %th= _("Count")
    %tbody
      - @sb[:orphaned_records].each do |rec|
        %tr.no-hover
          - question = _("Are you sure you want to delete orphaned records for user '%{user}'?") % {:user => rec[:userid]}
          - onclick = remote_function(:url => {:action => 'orphaned_records_delete', :userid => rec[:userid]}, :confirm => question)

          %td.table-view-pf-select
            %button.btn.btn-default{:onclick => onclick, :title => _("Click to delete Orphaned Records for this user")}
              %i.pficon.pficon-delete
          %td= h(rec[:userid])
          %td= h(rec[:count])

Replace delete.png with fonticon in server diagnostics orphaned data
Replace delete.png with fonticon in server diagnostics orphaned data
