Sha256: 6997ebf2408383ba0a224597713493c025318dad1c83f35f7aada345caeb500b

Contents?: true

Size: 679 Bytes

Versions: 60

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    # Helpers related to the Conferences layout.
    module ConferenceProgramHelper
      include Decidim::ResourceHelper

      def meetings_for_day(component, day, user)
        meetings = Decidim::Conferences::ConferenceProgramMeetingsByDay.new(component, day, user).query

        meetings_by_time = {}
        meetings.each do |meeting|
          meetings_by_time[start_time: meeting.start_time, end_time: meeting.end_time] ||= []
          meetings_by_time[start_time: meeting.start_time, end_time: meeting.end_time] << { meeting: meeting }
        end
        meetings_by_time
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

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