Sha256: a1b226f39a94c08d304422588e8c6a84d7f41f23e075ee94df7b160107f2506c
Contents?: true
Size: 601 Bytes
Versions: 31
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true module Decidim # This cell renders the Statistics of a Resource class StatisticsCell < Decidim::ViewModel private def stats @stats ||= model end def stats_heading t("decidim.statistics.headline") end def no_stats t("decidim.statistics.no_stats") end def heading? if options[:heading].nil? true else options[:heading] end end def design options[:design].presence || "default" end def wrapper_class "large-8" if design == "default" end end end
Version data entries
31 entries across 31 versions & 1 rubygems