Sha256: 7d6922cf0c738f176a4cb806662def9e2ee35e91f714b8ecf8843fe12b41cdb8
Contents?: true
Size: 743 Bytes
Versions: 42
Compression:
Stored size: 743 Bytes
Contents
# frozen_string_literal: true require "cell/partial" module Decidim module Meetings # This cell renders the list of public participants of a meeting. # # Example: # # cell("decidim/public_participants_list", meeting) class PublicParticipantsListCell < Decidim::ViewModel include Decidim::Meetings::MeetingsHelper include ApplicationHelper def show return if public_participants.blank? render end private # Finds the public participants (as users) of meeting # # Returns an Array of presented Users def public_participants @public_participants ||= model.public_participants.map { |user| present(user) } end end end end
Version data entries
42 entries across 42 versions & 1 rubygems