Class: Decidim::Proposals::ProposalActivityCell
- Inherits:
-
ActivityCell
- Object
- ActivityCell
- Decidim::Proposals::ProposalActivityCell
- Defined in:
- app/cells/decidim/proposals/proposal_activity_cell.rb
Overview
A cell to display when a proposal has been published.
Instance Method Summary collapse
Instance Method Details
#description ⇒ Object
18 19 20 |
# File 'app/cells/decidim/proposals/proposal_activity_cell.rb', line 18 def description (presenter.body(links: true)) end |
#presenter ⇒ Object
22 23 24 |
# File 'app/cells/decidim/proposals/proposal_activity_cell.rb', line 22 def presenter @presenter ||= Decidim::Proposals::ProposalPresenter.new(resource) end |
#resource_link_text ⇒ Object
14 15 16 |
# File 'app/cells/decidim/proposals/proposal_activity_cell.rb', line 14 def resource_link_text decidim_html_escape(presenter.title) end |
#title ⇒ Object
7 8 9 10 11 12 |
# File 'app/cells/decidim/proposals/proposal_activity_cell.rb', line 7 def title I18n.t( "decidim.proposals.last_activity.new_proposal_at_html", link: participatory_space_link ) end |