app/helpers/decidim/design/share_helper.rb in decidim-design-0.28.4 vs app/helpers/decidim/design/share_helper.rb in decidim-design-0.29.0.rc1

- old
+ new

@@ -5,34 +5,27 @@ module ShareHelper def share_sections [ { id: "usage", + title: t("decidim.design.helpers.usage"), contents: [ { type: :text, - values: ["Make sure the partial <code>decidim/shared/share_modal</code> is present in the DOM. This partial is placed in the application layout."] + values: [t("decidim.design.helpers.share_usage_description_html")] }, { - type: :table, - options: { headings: ["Share Button"] }, - items: share_table({}), + type: :cell_table, + options: { headings: [t("decidim.design.helpers.share_button")] }, cell_snippet: { cell: "decidim/share_button", - args: [] + args: [], + call_string: 'cell("decidim/share_button", nil)' } } ] } ] - end - - def share_table(*table_rows, **_opts) - table_rows.each_with_index.map do - row = [] - row << { method: :cell, args: ["decidim/share_button", nil] } - row - end end end end end