app/cells/decidim/proposals/proposal_activity_cell.rb in decidim-proposals-0.23.3 vs app/cells/decidim/proposals/proposal_activity_cell.rb in decidim-proposals-0.23.4

- old
+ new

@@ -1,15 +1,23 @@ # frozen_string_literal: true module Decidim module Proposals - # A cell to display when a proposal has been published. + # A cell to display when actions happen on a proposal. class ProposalActivityCell < ActivityCell def title - I18n.t( - "decidim.proposals.last_activity.new_proposal_at_html", - link: participatory_space_link - ) + case action + when "update" + I18n.t( + "decidim.proposals.last_activity.proposal_updated_at_html", + link: participatory_space_link + ) + else + I18n.t( + "decidim.proposals.last_activity.new_proposal_at_html", + link: participatory_space_link + ) + end end def resource_link_text decidim_html_escape(presenter.title) end