Sha256: 52fc4de2a893a786e720512a06ccebb94e30809ecf533bc55d898eb324e71d83

Contents?: true

Size: 575 Bytes

Versions: 45

Compression:

Stored size: 575 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_at_html",
          link: link_to(
            root_commentable_title,
            resource_link_path
          )
        )
      end

      def participatory_space
        model.participatory_space_lazy
      end

      def comment
        model.resource_lazy
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

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