Sha256: 2ccfc427033cd62100e8a6827e14fce9060f7e3c7c565d86e542acf0659d9379
Contents?: true
Size: 403 Bytes
Versions: 18
Compression:
Stored size: 403 Bytes
Contents
# frozen_string_literal: true module Decidim module Comments # A cell to display a comment thread. class CommentThreadCell < Decidim::ViewModel def title return unless has_threads? render :title end private def has_threads? model.comment_threads.any? end def order options[:order] || "older" end end end end
Version data entries
18 entries across 18 versions & 1 rubygems