mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
19 lines
421 B
Plaintext
19 lines
421 B
Plaintext
- report ||= @report
|
|
|
|
%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)
|