Sha256: 45b9871d12aff42fe7bff027ae279ddbcc942c806e332d99e8de9f2c6250d0f3

Contents?: true

Size: 423 Bytes

Versions: 45

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Budgets
    # This cell renders the budget card for an instance of a budget
    # the default size is the Medium Card (:m)
    class BudgetCell < Decidim::ViewModel
      include Cell::ViewModel::Partial

      def show
        cell card_size, model, options
      end

      private

      def card_size
        "decidim/budgets/budget_m"
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
decidim-budgets-0.27.9 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.8 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.7 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.6 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.26.10 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.26.9 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.5 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.26.8 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.4 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.3 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.26.7 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.26.5 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.2 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.1 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.26.4 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.0 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.26.3 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.0.rc2 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.27.0.rc1 app/cells/decidim/budgets/budget_cell.rb
decidim-budgets-0.26.2 app/cells/decidim/budgets/budget_cell.rb