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.26.1 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.26.0 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.26.0.rc2 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.26.0.rc1 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.25.2 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.25.1 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.25.0 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.25.0.rc4 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.25.0.rc3 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.25.0.rc2 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.25.0.rc1 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.24.3 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.23.6 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.24.2 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.23.5 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.24.1 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.24.0 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.24.0.rc2 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.23.4 app/helpers/decidim/conferences/conference_program_helper.rb
decidim-conferences-0.24.0.rc1 app/helpers/decidim/conferences/conference_program_helper.rb