Sha256: 38eb7e2d941fb2578fd097a416b141cee0e3395d5407fef9d02bac579d96a9bc

Contents?: true

Size: 466 Bytes

Versions: 48

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class NotificationsCell < Decidim::ViewModel
    include Decidim::CellsPaginateHelper
    include Decidim::IconHelper
    include Decidim::Core::Engine.routes.url_helpers

    helper_method :notifications

    def show
      render :show
    end

    private

    def notifications
      @notifications ||= model.notifications.includes(:resource).order(created_at: :desc).page(params[:page]).per(50)
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
decidim-core-0.25.2 app/cells/decidim/notifications_cell.rb
decidim-core-0.25.1 app/cells/decidim/notifications_cell.rb
decidim-core-0.25.0 app/cells/decidim/notifications_cell.rb
decidim-core-0.25.0.rc4 app/cells/decidim/notifications_cell.rb
decidim-core-0.25.0.rc3 app/cells/decidim/notifications_cell.rb
decidim-core-0.25.0.rc2 app/cells/decidim/notifications_cell.rb
decidim-core-0.25.0.rc1 app/cells/decidim/notifications_cell.rb
decidim-core-0.24.3 app/cells/decidim/notifications_cell.rb
decidim-core-0.23.6 app/cells/decidim/notifications_cell.rb
decidim-core-0.24.2 app/cells/decidim/notifications_cell.rb
decidim-core-0.23.5 app/cells/decidim/notifications_cell.rb
decidim-core-0.24.1 app/cells/decidim/notifications_cell.rb
decidim-core-0.24.0 app/cells/decidim/notifications_cell.rb
decidim-core-0.24.0.rc2 app/cells/decidim/notifications_cell.rb
decidim-core-0.23.4 app/cells/decidim/notifications_cell.rb
decidim-core-0.24.0.rc1 app/cells/decidim/notifications_cell.rb
decidim-core-0.23.3 app/cells/decidim/notifications_cell.rb
decidim-core-0.23.2 app/cells/decidim/notifications_cell.rb
decidim-core-0.23.1 app/cells/decidim/notifications_cell.rb
decidim-core-0.23.1.rc1 app/cells/decidim/notifications_cell.rb