Sha256: 9f8051e04463dfa7291f43856612f06fb37314f3581ea4ef7e06cfc69cfc4a14

Contents?: true

Size: 858 Bytes

Versions: 6

Compression:

Stored size: 858 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Design
    module FollowHelper
      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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-design-0.29.1 app/helpers/decidim/design/follow_helper.rb
decidim-design-0.29.0 app/helpers/decidim/design/follow_helper.rb
decidim-design-0.29.0.rc4 app/helpers/decidim/design/follow_helper.rb
decidim-design-0.29.0.rc3 app/helpers/decidim/design/follow_helper.rb
decidim-design-0.29.0.rc2 app/helpers/decidim/design/follow_helper.rb
decidim-design-0.29.0.rc1 app/helpers/decidim/design/follow_helper.rb