Sha256: 7d4fabe79844e67abe7990373a4660f3331857c3500e60a404aaee6ba86dfa68
Contents?: true
Size: 795 Bytes
Versions: 3
Compression:
Stored size: 795 Bytes
Contents
# frozen_string_literal: true require "cell/partial" module Decidim module Proposals # This cell renders a proposal with its M-size card. class CollaborativeDraftMCell < Decidim::CardMCell include CollaborativeDraftCellsHelper def badge render end private def has_state? true end def title present(model).title end def description truncate(present(model).body, length: 100) end def has_badge? true end def badge_classes return super unless options[:full_badge] state_classes.concat(["label", "collaborative-draft-status"]).join(" ") end def statuses [:creation_date, :follow, :comments_count] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems