implements configurable schedule granularity and improves the schedule grid for denser schedule grids on smaller screens
This commit is contained in:
parent
4089f16f17
commit
ff9ca4a817
11 changed files with 56 additions and 24 deletions
6
config/initializers/schedule_parameters.rb
Normal file
6
config/initializers/schedule_parameters.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue