Sha256: 543d13f7871ac521598da0c11f6f11ca7986d61b9304b1281adb787a46a1e38c

Contents?: true

Size: 466 Bytes

Versions: 37

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Comments
    # This cell renders the comment card for an instance of a Comment
    # the default size is the Medium Card (:m)
    class CommentCardCell < Decidim::ViewModel
      include CommentCellsHelper
      include Cell::ViewModel::Partial

      def show
        cell card_size, model, options
      end

      private

      def card_size
        "decidim/comments/comment_m"
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

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