Sha256: 0ab28e6bcc1618c92c5100a5039c8520755434b2a06b74f8482ce02d18367ceb
Contents?: true
Size: 1.05 KB
Versions: 9
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses # This cell renders the Medium (:m) process group card # for an given instance of a ProcessGroup class ProcessGroupMCell < Decidim::CardMCell private def has_image? true end def resource_image_path model.hero_image.url end def title translated_attribute model.name end def resource_path Decidim::ParticipatoryProcesses::Engine.routes.url_helpers.participatory_process_group_path(model) end def step_title translated_attribute model.active_step.title end def card_classes ["card--process", "card--stack"].join(" ") end def statuses super << :processes_count end def processes_count_status content_tag( :strong, t("layouts.decidim.participatory_process_groups.participatory_process_group.processes_count") ) + " " + model.participatory_processes.published.count.to_s end end end end
Version data entries
9 entries across 9 versions & 1 rubygems