Permalink
Browse files

Move Unsessions into their own tab on the schedule

  • Loading branch information...
1 parent 4e40867 commit 2ba264769e5bb710b23e2edb2cfe441dbfde2d59 @marioaquino marioaquino committed Sep 22, 2012
@@ -3,7 +3,7 @@
<% room_names = room_names_for(session_day, formats) %>
<%- next if room_names.empty? %>
<div class="p3">
- <h3><a name='<%= sessions_type %>'><%= session_day %></a></h3>
+ <h3><%= session_day %></h3>
<ul class="free clearfix schedule-header">
<% room_names.each do |room| %>
<li class="header"><%= room %></li>
@@ -60,6 +60,7 @@ $(document).ready(function() {
$('#preconf-elc').removeClass('hidden');
$('#preconf-workshops').addClass('hidden');
$('#main-conf-sessions').addClass('hidden');
+ $('#unsessions').addClass('hidden');
});
$('#workshops').click(function(e) {
@@ -71,26 +72,29 @@ $(document).ready(function() {
$('#preconf-workshops').removeClass('hidden');
$('#preconf-elc').addClass('hidden');
$('#main-conf-sessions').addClass('hidden');
+ $('#unsessions').addClass('hidden');
});
$('#main-conf').click(function(e) {
e.preventDefault();
$('#elc').removeClass('selected');
$('#workshops').removeClass('selected');
$('#main-conf').addClass('selected');
+ $('#unsessions-conf').removeClass('selected');
$('#main-conf-sessions').removeClass('hidden');
$('#preconf-elc').addClass('hidden');
$('#preconf-workshops').addClass('hidden');
+ $('#unsessions').addClass('hidden');
});
$('#unsessions-conf').click(function(e) {
- //e.preventDefault();
+ e.preventDefault();
$('#elc').removeClass('selected');
$('#workshops').removeClass('selected');
- $('#main-conf').addClass('selected');
+ $('#main-conf').removeClass('selected');
$('#unsessions-conf').addClass('selected');
- $('#main-conf-sessions').removeClass('hidden');
- $('#unsessions-conf').removeClass('hidden');
+ $('#main-conf-sessions').addClass('hidden');
+ $('#unsessions').removeClass('hidden');
$('#preconf-elc').addClass('hidden');
$('#preconf-workshops').addClass('hidden');
});
@@ -6,18 +6,22 @@
<div id="elc" class="title">Emerging Languages Camp</div>
<div id="workshops" class="title">Workshops</div>
<div id="main-conf" class="title selected">Conference</div>
- <div id="unsessions-conf" class="title"><a href='#unsessions'>Unsessions</a></div>
+ <div id="unsessions-conf" class="title">Unsessions</div>
</div>
<div id='preconf-elc' class="preconf hidden">
- <%= render :partial => 'shared/schedule_table', :locals => { :cache_key => cache_key, :formats => %w[elc], :schedule_sessions => elc_schedule, :display_track => false, :sessions_type => 'elc' } %>
+ <%= render :partial => 'shared/schedule_table', :locals => { :cache_key => cache_key, :formats => %w[elc], :schedule_sessions => elc_schedule, :display_track => false } %>
</div>
<div id='preconf-workshops' class="preconf hidden">
<%= render :partial => 'shared/schedule', :locals => { :cache_key => cache_key, :formats => %w[workshop], :schedule_sessions => workshop_schedule, :display_track => false }%>
</div>
<div id="main-conf-sessions">
<% main_schedule.each_pair do |session_day, session_start_hours| %>
- <%= render :partial => 'shared/schedule_table', :locals => { :cache_key => cache_key, :formats => %w[keynote talk], :schedule_sessions => {session_day => session_start_hours}, :display_track => true, :sessions_type => 'sessions' }%>
- <%= render :partial => 'shared/schedule_table', :locals => { :cache_key => cache_key, :formats => %w[unsession], :schedule_sessions => {session_day, session_start_hours}, :display_track => false, :sessions_type => 'unsessions' }%>
+ <%= render :partial => 'shared/schedule_table', :locals => { :cache_key => cache_key, :formats => %w[keynote talk], :schedule_sessions => {session_day => session_start_hours}, :display_track => true }%>
+ <% end %>
+ </div>
+ <div id="unsessions" class="hidden">
+ <% main_schedule.each_pair do |session_day, session_start_hours| %>
+ <%= render :partial => 'shared/schedule_table', :locals => { :cache_key => cache_key, :formats => %w[unsession], :schedule_sessions => {session_day, session_start_hours}, :display_track => false }%>
<% end %>
</div>
</div>

0 comments on commit 2ba2647

Please sign in to comment.