Sha256: 4831937c6703dced215b9350f3c36a1f0d2a5bd1935473ddaa0091cff388c95a
Contents?: true
Size: 594 Bytes
Versions: 8
Compression:
Stored size: 594 Bytes
Contents
# frozen_string_literal: true module Decidim class CommentsButtonCell < ButtonCell delegate :current_settings, :component_settings, to: :controller def show if options.has_key?(:display) return render if options[:display] return end render if component_settings.comments_enabled? && !current_settings.try(:comments_blocked?) end private def path "#comments" end def text t("decidim.comments.comments_title") end def icon_name resource_type_icon_key "Decidim::Comments::Comment" end end end
Version data entries
8 entries across 8 versions & 1 rubygems