Class: Decidim::Comments::CommentActivityCell
- Inherits:
-
ActivityCell
- Object
- ViewModel
- ActivityCell
- Decidim::Comments::CommentActivityCell
- Includes:
- CommentCellsHelper
- Defined in:
- decidim-comments/app/cells/decidim/comments/comment_activity_cell.rb
Overview
A cell to display when a comment has been created.
Constant Summary
Constants included from IconHelper
IconHelper::DEFAULT_RESOURCE_TYPE_ICONS
Instance Method Summary collapse
Methods included from CommentCellsHelper
#renderable?, #resource_link_path, #resource_link_text, #root_commentable_title, #url_params
Methods inherited from ActivityCell
#cache_hash, #created_at, #description, #element_id, #renderable?, #resource, #resource_link_path, #resource_link_text, #show, #user
Methods included from IconHelper
#component_icon, #manifest_icon, #resource_icon, #resource_type_icon, #resource_type_icon_key
Instance Method Details
#comment ⇒ Object
23 24 25 |
# File 'decidim-comments/app/cells/decidim/comments/comment_activity_cell.rb', line 23 def comment model.resource_lazy end |
#participatory_space ⇒ Object
19 20 21 |
# File 'decidim-comments/app/cells/decidim/comments/comment_activity_cell.rb', line 19 def participatory_space model.participatory_space_lazy end |
#title ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'decidim-comments/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 |