mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
20 lines
616 B
Plaintext
20 lines
616 B
Plaintext
- content_for :page_title do
|
|
= t(:listing_reports)
|
|
|
|
.columns.twelve
|
|
%table.index
|
|
%thead
|
|
%tr
|
|
%th= t(:name)
|
|
%th= t(:description)
|
|
%tbody
|
|
- @reports.each do |report_type, report_subtypes|
|
|
%tr
|
|
%td
|
|
= I18n.t(:name, scope: [:admin, :reports, report_type])
|
|
%td
|
|
- if report_subtypes.empty?
|
|
- name = I18n.t(:name, scope: [:admin, :reports, report_type])
|
|
- report_subtypes = [[name, nil]]
|
|
= render partial: "report_subtype", locals: { report_subtypes: report_subtypes, report_type: report_type }
|