Sha256: bb4fa41b03a00a4097f22fea1c9e016540c8c9fff5093b11d75f9f4277c561d6
Contents?: true
Size: 937 Bytes
Versions: 7
Compression:
Stored size: 937 Bytes
Contents
# frozen_string_literal: true module Decidim module Design module ReportHelper def report_sections [ { id: "usage", contents: [ { type: :text, values: ["Report button launches a modal window to flag the current resource."] }, { type: :table, options: { headings: ["Report Button"] }, items: report_table({}), cell_snippet: { cell: "decidim/report_button", args: [Decidim::User.first] } } ] } ] end def report_table(*table_rows, **_opts) table_rows.each_with_index.map do row = [] row << render(partial: "decidim/design/components/report/static-report") row end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems