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