mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
21 lines
553 B
Plaintext
21 lines
553 B
Plaintext
- if params[:q].present?
|
|
%table.report__table{id: id}
|
|
%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)
|
|
- else
|
|
%p.report__message
|
|
= t(".select_and_search", option: msg_option.upcase)
|