Merge pull request #31 from differentreality/schedule_show_by_date
Schedule show by date
This commit is contained in:
commit
0f229f3db0
2 changed files with 7 additions and 1 deletions
|
|
@ -7,6 +7,12 @@ class ScheduleController < ApplicationController
|
|||
@rooms = @conference.rooms
|
||||
@events = @conference.events
|
||||
@dates = @conference.start_date..@conference.end_date
|
||||
|
||||
if @dates === Date.current
|
||||
@today = Date.current.strftime("%Y-%m-%d")
|
||||
else
|
||||
@today = @conference.start_date.strftime("%Y-%m-%d")
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue