Sha256: 9b94c923964574aad8b6f4540c509fcc5aea7732c13dd1c0cab4003209f6498b
Contents?: true
Size: 655 Bytes
Versions: 39
Compression:
Stored size: 655 Bytes
Contents
# frozen_string_literal: true module Decidim module Debates # A cell to display when actions happen on a debate. class DebateActivityCell < ActivityCell def title case action when "update" I18n.t( "decidim.debates.last_activity.debate_updated_at_html", link: participatory_space_link ) else I18n.t( "decidim.debates.last_activity.new_debate_at_html", link: participatory_space_link ) end end def resource_link_text Decidim::Debates::DebatePresenter.new(resource).title end end end end
Version data entries
39 entries across 39 versions & 1 rubygems