class Decidim::Debates::DebateActivityCell

A cell to display when actions happen on a debate.

def resource_link_text

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

def title

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