Files
openfoodnetwork/app/views/admin/reports/_table.html.haml
Sebastian Castro c7c5965eb5 Report Refactor 3 Clean
No longer need to handle old report class
Remove no longer used OrderGrouper service


sq
2022-05-12 16:54:14 +02:00

16 lines
420 B
Plaintext

- report ||= @report
.report__table-container
%table.report__table
%thead
%tr
- report.table_headers.each do |heading|
%th
= heading
%tbody
- if report.grouped_data.present?
= render partial: 'admin/reports/row_group', locals: { report: report, data: report.grouped_data }
- else
%tr
%td{colspan: report.table_headers.count}= t(:none)