Sha256: 45ec04335dae81bafc121ecc42cdfd9b8c07ec35a89d918f2186030074aed642
Contents?: true
Size: 606 Bytes
Versions: 25
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true require "cell/partial" module Decidim module Proposals # This cell renders the tags for a proposal. class ProposalTagsCell < Decidim::ViewModel include ProposalCellsHelper property :category property :previous_category property :scope def show render if has_category_or_scopes? end private def show_previous_category? options[:show_previous_category].to_s != "false" end def has_category_or_scopes? category.present? || has_visible_scopes?(model) end end end end
Version data entries
25 entries across 25 versions & 1 rubygems