Sha256: 85ebe91a79f0474ae676a975ffa181a91a2d522ab1b24f463ab5ba2c5e34c3c1
Contents?: true
Size: 594 Bytes
Versions: 8
Compression:
Stored size: 594 Bytes
Contents
# frozen_string_literal: true require "cell/partial" module Decidim module Proposals # This cell renders the cost report for a proposal. class CostReportCell < Decidim::ViewModel include ProposalCellsHelper private def cost number_to_currency(model.cost, unit: Decidim.currency_unit) end def cost_report decidim_sanitize_editor(translated_attribute(model.cost_report).html_safe) end def execution_period decidim_sanitize_editor(translated_attribute(model.execution_period).html_safe) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems