Sha256: 2bfc1ce65f49d7ff2289f100816cc89075c954b33df7ecb54bd7e3a1250fd026

Contents?: true

Size: 390 Bytes

Versions: 28

Compression:

Stored size: 390 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 decidim_admin
        Decidim::Admin::Engine.routes.url_helpers
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
decidim-admin-0.23.6 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.23.5 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.23.4 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.23.3 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.23.2 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.23.1 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.23.1.rc1 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.23.0 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.22.0 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.21.0 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.20.1 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.20.0 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.19.1 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.18.1 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.19.0 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.17.2 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.18.0 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.17.1 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.16.1 app/cells/decidim/admin/content_block_cell.rb
decidim-admin-0.17.0 app/cells/decidim/admin/content_block_cell.rb