Class: Decidim::Surveys::SurveyActivityCell
- Inherits:
-
ActivityCell
- Object
- ViewModel
- ActivityCell
- Decidim::Surveys::SurveyActivityCell
- Includes:
- ComponentPathHelper
- Defined in:
- decidim-surveys/app/cells/decidim/surveys/survey_activity_cell.rb
Overview
A cell to display when a Survey has been published.
Constant Summary
Constants included from IconHelper
IconHelper::DEFAULT_RESOURCE_TYPE_ICONS
Instance Method Summary collapse
Methods included from ComponentPathHelper
#can_be_managed?, #main_component_path, #main_component_url, #manage_component_path
Methods inherited from ActivityCell
#cache_hash, #created_at, #description, #element_id, #renderable?, #resource, #resource_link_path, #resource_link_text, #show, #user
Methods included from IconHelper
#component_icon, #manifest_icon, #resource_icon, #resource_type_icon, #resource_type_icon_key
Instance Method Details
#activity_link_path ⇒ Object
13 14 15 |
# File 'decidim-surveys/app/cells/decidim/surveys/survey_activity_cell.rb', line 13 def activity_link_path main_component_path(component) end |
#title ⇒ Object
9 10 11 |
# File 'decidim-surveys/app/cells/decidim/surveys/survey_activity_cell.rb', line 9 def title I18n.t("decidim.surveys.last_activity.new_survey") end |