Class: Decidim::Budgets::ProjectSelectedStatusCell

Inherits:
ViewModel
  • Object
show all
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

#showObject



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?
     :span, class: css_class do
      t("decidim.budgets.projects.project.selected")
    end
  end
end