mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
For now this view is used only in the context of packing, but later we would move all existing rpeort to use same view
18 lines
460 B
Plaintext
18 lines
460 B
Plaintext
- if params[:q].present?
|
|
%table.report__table
|
|
%thead
|
|
%tr
|
|
- @report.table_headers.each do |heading|
|
|
%th
|
|
= t("admin.reports.table.headings.#{heading}")
|
|
%tbody
|
|
- @report.table_rows.each do |row|
|
|
- if row
|
|
%tr
|
|
- row.each do |cell|
|
|
%td
|
|
= cell
|
|
- if @report.table_rows.empty?
|
|
%tr
|
|
%td{colspan: @report.table_headers.count}= t(:none)
|