Sha256: 9e9d98d80004ef728c19dbe3e3410b4cb29849b11236cddbd13f37db37b8ebf3

Contents?: true

Size: 454 Bytes

Versions: 4

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Proposals
    # A cell to display when a proposal has been published.
    class ProposalActivityCell < ActivityCell
      def title
        I18n.t(
          "decidim.proposals.last_activity.new_proposal_at_html",
          link: participatory_space_link
        )
      end

      def resource_link_text
        Decidim::Proposals::ProposalPresenter.new(resource).title
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-proposals-0.16.0 app/cells/decidim/proposals/proposal_activity_cell.rb
decidim-proposals-0.15.2 app/cells/decidim/proposals/proposal_activity_cell.rb
decidim-proposals-0.15.1 app/cells/decidim/proposals/proposal_activity_cell.rb
decidim-proposals-0.15.0 app/cells/decidim/proposals/proposal_activity_cell.rb