Sha256: 4e6f40bd44154d63cf30e0ed80116b79051c4629df6d41dc6496171c69a1cf7f

Contents?: true

Size: 734 Bytes

Versions: 20

Compression:

Stored size: 734 Bytes

Contents

# frozen_string_literal: true

require "cell/partial"

module Decidim
  module NewsletterTemplates
    class BaseCell < Decidim::ViewModel
      include Decidim::SanitizeHelper
      include Cell::ViewModel::Partial
      include Decidim::NewslettersHelper

      def show
        render :show
      end

      def organization
        options[:organization]
      end
      alias current_organization organization

      def newsletter
        options[:newsletter]
      end

      def recipient_user
        options[:recipient_user]
      end

      def custom_url_for_mail_root
        options[:custom_url_for_mail_root]
      end

      def decidim
        @decidim ||= EngineRouter.new("decidim", {})
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-core-0.28.4 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.9 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.28.3 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.8 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.28.2 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.7 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.28.1 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.6 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.10 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.9 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.28.0 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.5 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.28.0.rc5 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.28.0.rc4 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.8 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.4 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.3 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.7 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.5 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.2 app/cells/decidim/newsletter_templates/base_cell.rb