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 committed by BelieveC
parent a4ef10cf1b
commit ddc9ed9dc6
11 changed files with 56 additions and 24 deletions

View file

@ -16,7 +16,8 @@ class EventType < ActiveRecord::Base
alias_attribute :name, :title
# If LENGTH_STEP must be divisor of 60, otherwise the schedule wont be displayed properly
LENGTH_STEP = 15
LENGTH_STEP = defined?(SCHEDULE_CELL_SIZE) ? SCHEDULE_CELL_SIZE : 15
private