Sha256: eb0a2c4db316cd331451a36e51bec04daa16989956e49773e5d7a5ab250d4d88
Contents?: true
Size: 586 Bytes
Versions: 13
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true module Decidim module Budgets # This cell renders metadata for an instance of a budget class BudgetMetadataCell < Decidim::CardMetadataCell alias budget model def initialize(*) super @items.prepend(*budget_items) end private def budget_items [project_count] end def project_count { text: t(:projects_count, scope: "decidim.budgets.projects.count", count: budget.projects.size), icon: "git-pull-request-line" } end end end end
Version data entries
13 entries across 13 versions & 1 rubygems