6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'decidim-design/app/helpers/decidim/design/report_helper.rb', line 6
def report_sections
[
{
id: "usage",
title: t("decidim.design.helpers.usage"),
contents: [
{
type: :text,
values: [t("decidim.design.helpers.report_usage_description")]
},
{
type: :cell_table,
options: { headings: [t("decidim.design.helpers.report_button")] },
cell_snippet: {
cell: "decidim/report_button",
args: [Decidim::User.first],
call_string: 'cell("decidim/report_button", _REPORTABLE_RESOURCE_)'
}
}
]
}
]
end
|