Class: Decidim::Comments::CommentMCell
Overview
This cell renders the Medium (:m) comment card for an given instance of a Comment
Instance Method Summary
collapse
#renderable?, #resource_link_path, #resource_link_text, #root_commentable_title, #url_params
#show
#card_for
Instance Method Details
14
15
16
|
# File 'decidim-comments/app/cells/decidim/comments/comment_m_cell.rb', line 14
def
model
end
|
#description ⇒ Object
24
25
26
|
# File 'decidim-comments/app/cells/decidim/comments/comment_m_cell.rb', line 24
def description
strip_tags(model.formatted_body).truncate(200, separator: /\s/)
end
|
18
19
20
|
# File 'decidim-comments/app/cells/decidim/comments/comment_m_cell.rb', line 18
def
false
end
|
#statuses ⇒ Object
10
11
12
|
# File 'decidim-comments/app/cells/decidim/comments/comment_m_cell.rb', line 10
def statuses
[]
end
|