Skip to content
Snippets Groups Projects
Commit c80f34b9 authored by Teal's avatar Teal
Browse files

blurb

parent 5a3d3751
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,11 @@ class Session < ApplicationRecord ...@@ -24,6 +24,11 @@ class Session < ApplicationRecord
super.in_time_zone(conference.time_zone) super.in_time_zone(conference.time_zone)
end end
def is_interpreted
# XXX
["Stage 1", "Stage 2"].include? stage.name
end
def translators_needed? def translators_needed?
is_interpreted && assignments.length < 2 is_interpreted && assignments.length < 2
end end
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
pixels_per_hour = 300.0 pixels_per_hour = 300.0
timeline_granularity = 15 timeline_granularity = 15
fudge = 24 fudge = 24
current_time = Time.zone.now.in_time_zone(@conference.time_zone).advance(days: 1, hours: 2) current_time = Time.zone.now.in_time_zone(@conference.time_zone)
#.advance(days: 1, hours: 2)
# current_time = Time.parse(@conference.days.first.strftime("%Y-%m-%d 11:00")) # current_time = Time.parse(@conference.days.first.strftime("%Y-%m-%d 11:00"))
#current_time = @sessions_by_date[@conference.days.first].first.starts_at.advance(minutes: 5) #current_time = @sessions_by_date[@conference.days.first].first.starts_at.advance(minutes: 5)
%> %>
...@@ -57,7 +58,6 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone).advance(days: 1 ...@@ -57,7 +58,6 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone).advance(days: 1
<script type="text/javascript"> <script type="text/javascript">
function updateCurrentTime<%= date.strftime('day%Y%m%d') %>() { function updateCurrentTime<%= date.strftime('day%Y%m%d') %>() {
const currentTime = new Date(); const currentTime = new Date();
currentTime.setTime(currentTime.getTime() + 1 * 86400 * 1000); /* XXX DEBUG */
const timelineStartsAt = new Date(<%= timeline_starts_at.to_json.html_safe %>); const timelineStartsAt = new Date(<%= timeline_starts_at.to_json.html_safe %>);
const timelineEndsAt = new Date(<%= timeline_ends_at.to_json.html_safe %>); const timelineEndsAt = new Date(<%= timeline_ends_at.to_json.html_safe %>);
const fudge = <%= fudge %>; const fudge = <%= fudge %>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment