Class: Decidim::Debates::DebateActivityCell

Inherits:
ActivityCell
  • Object
show all
Defined in:
app/cells/decidim/debates/debate_activity_cell.rb

Overview

A cell to display when actions happen on a debate.

Instance Method Summary collapse

Instance Method Details



11
12
13
# File 'app/cells/decidim/debates/debate_activity_cell.rb', line 11

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

#titleObject



7
8
9
# File 'app/cells/decidim/debates/debate_activity_cell.rb', line 7

def title
  action == "update" ? I18n.t("decidim.debates.last_activity.debate_updated") : I18n.t("decidim.debates.last_activity.new_debate")
end