Sha256: afe084c60988cfdd32a940764cd6b19601fecc55b08ab4de6cffbc47524bdce2

Contents?: true

Size: 436 Bytes

Versions: 6

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Debates
    # A cell to display when Debate has been created.
    class DebateActivityCell < ActivityCell
      def title
        I18n.t(
          "decidim.debates.last_activity.new_debate_at_html",
          link: participatory_space_link
        )
      end

      def resource_link_text
        Decidim::Debates::DebatePresenter.new(resource).title
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-debates-0.24.0.rc1 app/cells/decidim/debates/debate_activity_cell.rb
decidim-debates-0.23.3 app/cells/decidim/debates/debate_activity_cell.rb
decidim-debates-0.23.2 app/cells/decidim/debates/debate_activity_cell.rb
decidim-debates-0.23.1 app/cells/decidim/debates/debate_activity_cell.rb
decidim-debates-0.23.1.rc1 app/cells/decidim/debates/debate_activity_cell.rb
decidim-debates-0.23.0 app/cells/decidim/debates/debate_activity_cell.rb