<% if @rooms.length > 1 and @conference.program.events.scheduled.any? %>
<%= render 'schedule' %>
<%= render 'all_events' %>
<% else %> <%= render 'all_events' %> <% end %>
<%= javascript_tag do %> // We set the program tab to active if the url tag starts by 'program-' $( document ).ready(function() { if(window.location.hash.substring(1).startsWith('program-')){ schedule = $('.schedule'); schedule.removeClass('active'); schedule.find('a').attr("aria-expanded", "false"); $('#schedule').removeClass('active'); program = $('.program'); program.addClass('active'); program.find('a').attr("aria-expanded", "true"); $('#program').addClass('active'); } }); <% end %>