Sha256: 161f6e8ad4f45e59fb30060249c12bdb4859176af865c61d3bfaf332900e6fc7

Contents?: true

Size: 407 Bytes

Versions: 4

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This cell renders a notification from a notifications collection

  class NotificationCell < Decidim::ViewModel
    include Decidim::IconHelper
    include Decidim::Core::Engine.routes.url_helpers

    def show
      render :show
    end

    private

    def notification
      @notification ||= Decidim::NotificationPresenter.new(model)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-core-0.26.1 app/cells/decidim/notification_cell.rb
decidim-core-0.26.0 app/cells/decidim/notification_cell.rb
decidim-core-0.26.0.rc2 app/cells/decidim/notification_cell.rb
decidim-core-0.26.0.rc1 app/cells/decidim/notification_cell.rb