Sha256: 3f63feb2e97d8d76cdb5e2db3a096a7a5c47597db07ade808d2afaecb4a5b9af

Contents?: true

Size: 690 Bytes

Versions: 13

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Comments
    # A cell to display when a comment has been created.
    class CommentActivityCell < ActivityCell
      include CommentCellsHelper

      def title
        I18n.t("decidim.comments.last_activity.new_comment")
      end

      def participatory_space
        model.participatory_space_lazy
      end

      def participatory_space_link
        link_to(root_commentable_title, resource_link_path)
      end

      def participatory_space_icon
        resource_type_icon(root_commentable.class)
      end

      def hide_participatory_space? = false

      def comment
        model.resource_lazy
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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