Sha256: 3c9d6d12a9bb86db70480b457555e62f234483aec4b1e05acd0ed0d4d6e18ca3
Contents?: true
Size: 733 Bytes
Versions: 47
Compression:
Stored size: 733 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 property :previous_scope def show render if has_category_or_scopes? end private def show_previous_category? options[:show_previous_category].to_s != "false" end def show_previous_scope? options[:show_previous_scope].to_s != "false" end def has_category_or_scopes? category.present? || has_visible_scopes?(model) end end end end
Version data entries
47 entries across 47 versions & 1 rubygems