Class: Decidim::Budgets::OrderActivityCell

Inherits:
ActivityCell
  • Object
show all
Defined in:
decidim-budgets/app/cells/decidim/budgets/order_activity_cell.rb

Overview

A cell to display when actions happen on an order.

Constant Summary

Constants included from IconHelper

IconHelper::DEFAULT_RESOURCE_TYPE_ICONS

Instance Method Summary collapse

Methods inherited from ActivityCell

#cache_hash, #created_at, #description, #element_id, #renderable?, #resource, #show, #user

Methods included from IconHelper

#component_icon, #manifest_icon, #resource_icon, #resource_type_icon, #resource_type_icon_key

Instance Method Details



11
12
13
# File 'decidim-budgets/app/cells/decidim/budgets/order_activity_cell.rb', line 11

def resource_link_path
  resource_locator(budget).path
end


15
16
17
# File 'decidim-budgets/app/cells/decidim/budgets/order_activity_cell.rb', line 15

def resource_link_text
  decidim_html_escape(translated_attribute(budget.title))
end

#titleObject



7
8
9
# File 'decidim-budgets/app/cells/decidim/budgets/order_activity_cell.rb', line 7

def title
  I18n.t("decidim.budgets.last_activity.new_vote_at")
end