Sha256: a7c068ee1453ced963ddb1d29e2edae90d080781740520b4d9ea52152bd94e9a

Contents?: true

Size: 510 Bytes

Versions: 13

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    # This cell renders the assembly card for an instance of an Assembly
    # the default size is the Grid Card (:g)
    class AssemblyCell < Decidim::ViewModel
      def show
        cell card_size, model, options
      end

      private

      def card_size
        case @options[:size]
        when :s
          "decidim/assemblies/assembly_s"
        else
          "decidim/assemblies/assembly_g"
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-assemblies-0.29.1 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.28.4 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.29.0 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.28.3 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.29.0.rc4 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.29.0.rc3 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.29.0.rc2 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.29.0.rc1 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.28.2 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.28.1 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.28.0 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.28.0.rc5 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.28.0.rc4 app/cells/decidim/assemblies/assembly_cell.rb