Sha256: 38f2e089b2ba70950c23a22d50d9cc4e34acbc62adc19f1e9010c44ebc77df63

Contents?: true

Size: 679 Bytes

Versions: 31

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Initiatives
    # This controller provides a widget that allows embedding the initiative
    class InitiativeWidgetsController < Decidim::WidgetsController
      helper InitiativesHelper
      helper PaginateHelper
      helper InitiativeHelper
      helper Decidim::Comments::CommentsHelper
      helper Decidim::Admin::IconLinkHelper

      include NeedsInitiative

      private

      def model
        @model ||= current_initiative
      end

      def current_participatory_space
        model
      end

      def iframe_url
        @iframe_url ||= initiative_initiative_widget_url(model)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-initiatives-0.22.0 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.21.0 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.20.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.20.0 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.19.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.18.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.19.0 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.17.2 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.18.0 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.17.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.16.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.17.0 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.16.0 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.15.2 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.15.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.15.0 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.14.4 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.14.3 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.14.2 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.14.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb