Class: Decidim::EnhancedTextwork::ParagraphActivityCell
- Inherits:
-
ActivityCell
- Object
- ActivityCell
- Decidim::EnhancedTextwork::ParagraphActivityCell
- Defined in:
- app/cells/decidim/enhanced_textwork/paragraph_activity_cell.rb
Overview
A cell to display when actions happen on a paragraph.
Instance Method Summary collapse
Instance Method Details
#description ⇒ Object
26 27 28 |
# File 'app/cells/decidim/enhanced_textwork/paragraph_activity_cell.rb', line 26 def description (presenter.body(links: true)) end |
#presenter ⇒ Object
30 31 32 |
# File 'app/cells/decidim/enhanced_textwork/paragraph_activity_cell.rb', line 30 def presenter @presenter ||= Decidim::EnhancedTextwork::ParagraphPresenter.new(resource) end |
#resource_link_text ⇒ Object
22 23 24 |
# File 'app/cells/decidim/enhanced_textwork/paragraph_activity_cell.rb', line 22 def resource_link_text decidim_html_escape(presenter.title) end |
#title ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/cells/decidim/enhanced_textwork/paragraph_activity_cell.rb', line 7 def title case action when "update" I18n.t( "decidim.enhanced_textwork.last_activity.paragraph_updated_at_html", link: participatory_space_link ) else I18n.t( "decidim.enhanced_textwork.last_activity.new_paragraph_at_html", link: participatory_space_link ) end end |