show first day if today is not within the conference date range
This commit is contained in:
parent
adb04ab82e
commit
4f582bc7f9
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ class ScheduleController < ApplicationController
|
||||||
|
|
||||||
if @dates === Date.current
|
if @dates === Date.current
|
||||||
@today = Date.current.strftime("%Y-%m-%d")
|
@today = Date.current.strftime("%Y-%m-%d")
|
||||||
|
else
|
||||||
|
@today = @conference.start_date.strftime("%Y-%m-%d")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue