Sha256: a95258aa1b5f7f8a4d2c4ca90b9e4587a70247cb8d628beb532c6d828812cdc5
Contents?: true
Size: 605 Bytes
Versions: 6
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true module Decidim module Comments # This cell renders the comment metadata for a card class CommentMetadataCell < Decidim::CardMetadataCell delegate :root_commentable, to: :model private def items [author_item, commentable_item, comments_count_item] end def commentable_item { text: decidim_escape_translated(root_commentable.title), icon: resource_type_icon_key(root_commentable.class) } end def comments_count_item super(root_commentable) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems