app/views/ops/_diagnostics_savedreports.html.haml
= 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])