fix the timeline stay issue (right side)
This commit is contained in:
@ -23,7 +23,8 @@ module TimelineHelper
|
||||
start = member.arriving
|
||||
start = Date.today.at_beginning_of_month if member.arriving < Date.today.at_beginning_of_month
|
||||
distance = ( member.leaving - member.arriving ).to_i
|
||||
distance > max_days ? max_days : distance
|
||||
max = max_days - started_days(member)
|
||||
distance > max ? max : distance
|
||||
end
|
||||
def weekly
|
||||
data = {}
|
||||
|
Reference in New Issue
Block a user