Sha256: a61da5e9e7e61c96540ef1d3b781d9283ac449d732b2cd7206fec99e0de306da

Contents?: true

Size: 540 Bytes

Versions: 26

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class FollowingCell < Decidim::ViewModel
    include Decidim::CellsPaginateHelper
    include Decidim::ApplicationHelper
    include Decidim::Core::Engine.routes.url_helpers
    include Decidim::CardHelper

    def show
      render :show
    end

    def public_followings
      @public_followings ||= Kaminari.paginate_array(model.public_followings).page(params[:page]).per(20)
    end

    def non_public_followings?
      public_followings.count < model.following_count
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/cells/decidim/following_cell.rb
decidim-core-0.27.8 app/cells/decidim/following_cell.rb
decidim-core-0.27.7 app/cells/decidim/following_cell.rb
decidim-core-0.27.6 app/cells/decidim/following_cell.rb
decidim-core-0.26.10 app/cells/decidim/following_cell.rb
decidim-core-0.26.9 app/cells/decidim/following_cell.rb
decidim-core-0.27.5 app/cells/decidim/following_cell.rb
decidim-core-0.26.8 app/cells/decidim/following_cell.rb
decidim-core-0.27.4 app/cells/decidim/following_cell.rb
decidim-core-0.27.3 app/cells/decidim/following_cell.rb
decidim-core-0.26.7 app/cells/decidim/following_cell.rb
decidim-core-0.26.5 app/cells/decidim/following_cell.rb
decidim-core-0.27.2 app/cells/decidim/following_cell.rb
decidim-core-0.27.1 app/cells/decidim/following_cell.rb
decidim-core-0.26.4 app/cells/decidim/following_cell.rb
decidim-core-0.27.0 app/cells/decidim/following_cell.rb
decidim-core-0.26.3 app/cells/decidim/following_cell.rb
decidim-core-0.27.0.rc2 app/cells/decidim/following_cell.rb
decidim-core-0.27.0.rc1 app/cells/decidim/following_cell.rb
decidim-core-0.26.2 app/cells/decidim/following_cell.rb