Show the individual User schedule
Show the current user favourites events for both schedule and all events. Unsed css removed.
This commit is contained in:
parent
c6906675f9
commit
059b5cbf84
8 changed files with 40 additions and 23 deletions
|
|
@ -29,9 +29,10 @@
|
|||
%td.room{ style: "height: #{ td_height(@rooms) }px;" }
|
||||
.room.elipsis.break-words{ style: "-webkit-line-clamp: #{ room_lines(@rooms) }; height: #{ room_height(@rooms) }px;" }
|
||||
= room.name
|
||||
|
||||
- event_schedules = (@event_schedules_by_room_id[room.id] || []).select{ |e| (e.end_time > start_time) && (e.start_time <= (start_time + hrs_per_slide.hour)) }
|
||||
|
||||
- event_schedules = event_schedules.select{ |e| e.event.favourite_users.exists?(current_user.id) } if current_user && @favourites
|
||||
|
||||
- interval_count.times do |offset|
|
||||
- if span > 1
|
||||
- span -= 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue