diff --git a/app/helpers/concerns/conference_helper_override.rb b/app/helpers/concerns/conference_helper_override.rb index 7408d40..d732efa 100644 --- a/app/helpers/concerns/conference_helper_override.rb +++ b/app/helpers/concerns/conference_helper_override.rb @@ -6,9 +6,10 @@ module ConferenceHelperOverride included do alias_method :decidim_conference_nav_items, :conference_nav_items + # rubocop:disable Style/SingleArgumentDig def conference_nav_items(participatory_space) @conference_nav_items ||= begin - divisor = Rails.application.secrets.speakers_divisor[participatory_space.slug.to_sym] + divisor = Rails.application.secrets.speakers_divisor.dig(participatory_space.slug.to_sym) items = decidim_conference_nav_items(participatory_space) items.first[:name] = I18n.t("capital.speakers_divisor.#{divisor.first[:name]}") if participatory_space.speakers.exists? && divisor && divisor&.first&.[](:name) items diff --git a/app/overrides/decidim/conferences/conference_speakers/index/replace_speaker.html.erb.deface b/app/overrides/decidim/conferences/conference_speakers/index/replace_speaker.html.erb.deface index fc10e9a..32fcb3f 100644 --- a/app/overrides/decidim/conferences/conference_speakers/index/replace_speaker.html.erb.deface +++ b/app/overrides/decidim/conferences/conference_speakers/index/replace_speaker.html.erb.deface @@ -1,7 +1,7 @@ <% divisor = Rails.application.secrets.speakers_divisor.dig(conference.slug.to_sym) %> - +<% byebug %>
<% if divisor && divisor.respond_to?(:each) %> <% all_filters = divisor.pluck(:position_filter).flatten.filter(&:presence) %> diff --git a/app/overrides/decidim/conferences/conferences/show/change_layout.html.erb.deface b/app/overrides/decidim/conferences/conferences/show/change_layout.html.erb.deface index 03a6930..4abd2c9 100644 --- a/app/overrides/decidim/conferences/conferences/show/change_layout.html.erb.deface +++ b/app/overrides/decidim/conferences/conferences/show/change_layout.html.erb.deface @@ -1,7 +1,7 @@ <% -lay = if current_participatory_space.components.empty? +lay = if conference_nav_items(current_participatory_space).empty? "layouts/decidim/shared/layout_center" else "layouts/decidim/shared/layout_two_col"