implements configurable schedule granularity and improves the schedule grid for denser schedule grids on smaller screens

This commit is contained in:
Eugene Dubinin 2017-01-17 14:46:12 +02:00
parent 4089f16f17
commit ff9ca4a817
11 changed files with 56 additions and 24 deletions

View file

@ -0,0 +1,6 @@
#sanitize the OSEM_SCHEUDLE_CELL_SIZE to be used for EventType::LENGTH_STEP
sched_cell_size = ENV['OSEM_SCHEDULE_CELL_SIZE'].to_i
if (sched_cell_size > 0 and 60 % sched_cell_size == 0)
SCHEDULE_CELL_SIZE = sched_cell_size
end