Sha256: 17b3a1d7de13cc44cba4fc4dc44f9905d0043061a3e4a9fa6b80216f60f2d0ec

Contents?: true

Size: 412 Bytes

Versions: 6

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module EnhancedTextwork
    module AdminLog
      module ValueTypes
        class ParagraphStatePresenter < Decidim::Log::ValueTypes::DefaultPresenter
          def present
            return unless value

            h.t(value, scope: "decidim.enhanced_textwork.admin.paragraph_answers.edit", default: value)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-enhanced_textwork-1.0.5 app/presenters/decidim/enhanced_textwork/admin_log/value_types/paragraph_state_presenter.rb
decidim-enhanced_textwork-1.0.4 app/presenters/decidim/enhanced_textwork/admin_log/value_types/paragraph_state_presenter.rb
decidim-enhanced_textwork-1.0.3 app/presenters/decidim/enhanced_textwork/admin_log/value_types/paragraph_state_presenter.rb
decidim-enhanced_textwork-1.0.2 app/presenters/decidim/enhanced_textwork/admin_log/value_types/paragraph_state_presenter.rb
decidim-enhanced_textwork-1.0.1 app/presenters/decidim/enhanced_textwork/admin_log/value_types/paragraph_state_presenter.rb
decidim-enhanced_textwork-1.0.0 app/presenters/decidim/enhanced_textwork/admin_log/value_types/paragraph_state_presenter.rb