Class: Decidim::Budgets::ProjectSelectedStatusCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Budgets::ProjectSelectedStatusCell
- Defined in:
- app/cells/decidim/budgets/project_selected_status_cell.rb
Overview
This cell renders the selected status if the project has been selected
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/cells/decidim/budgets/project_selected_status_cell.rb', line 9 def show if voting_finished? && model.selected? content_tag :span, class: css_class do t("decidim.budgets.projects.project.selected") end end end |