Sha256: 8e6d01125cb63bafa4ac40b4de8b9407e1627cad013130bd050689a652e76d60

Contents?: true

Size: 418 Bytes

Versions: 24

Compression:

Stored size: 418 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Initiatives
    module ContentBlocks
      class HighlightedInitiativesSettingsFormCell < Decidim::ViewModel
        alias form model

        def content_block
          options[:content_block]
        end

        def label
          I18n.t("decidim.initiatives.admin.content_blocks.highlighted_initiatives.max_results")
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
decidim-initiatives-0.16.0 app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form_cell.rb
decidim-initiatives-0.15.2 app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form_cell.rb
decidim-initiatives-0.15.1 app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form_cell.rb
decidim-initiatives-0.15.0 app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_settings_form_cell.rb