Class: Decidim::Comments::CommentActivityCell

Inherits:
ActivityCell
  • Object
show all
Includes:
CommentCellsHelper
Defined in:
app/cells/decidim/comments/comment_activity_cell.rb

Overview

A cell to display when a comment has been created.

Instance Method Summary collapse

Methods included from CommentCellsHelper

#renderable?, #resource_link_path, #resource_link_text, #root_commentable_title, #url_params

Instance Method Details

#commentObject



23
24
25
# File 'app/cells/decidim/comments/comment_activity_cell.rb', line 23

def comment
  model.resource_lazy
end

#participatory_spaceObject



19
20
21
# File 'app/cells/decidim/comments/comment_activity_cell.rb', line 19

def participatory_space
  model.participatory_space_lazy
end

#titleObject



9
10
11
12
13
14
15
16
17
# File 'app/cells/decidim/comments/comment_activity_cell.rb', line 9

def title
  I18n.t(
    "decidim.comments.last_activity.new_comment_at_html",
    link: link_to(
      root_commentable_title,
      resource_link_path
    )
  )
end