Sha256: 7184e4972146b480697d67df5cff28e1c6fbf870d5116b834c7fbf8e937f5f85

Contents?: true

Size: 518 Bytes

Versions: 37

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    class ContentBlockCell < Decidim::ViewModel
      include Decidim::IconHelper

      delegate :public_name_key, :has_settings?, to: :model

      def manifest_name
        model.try(:manifest_name) || model.name
      end

      def edit_content_block_path
        decidim_admin.edit_organization_homepage_content_block_path(manifest_name)
      end

      def decidim_admin
        Decidim::Admin::Engine.routes.url_helpers
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
decidim-admin-0.27.9 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.8 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.7 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.6 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.26.10 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.26.9 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.5 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.26.8 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.4 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.3 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.26.7 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.26.5 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.2 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.1 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.26.4 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.0 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.26.3 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.0.rc2 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.27.0.rc1 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.26.2 app/cells/decidim/admin/content_block_cell.rb