Extract WORKING_TIME_DELTA to be used globally and set it to 5 min.

This commit is contained in:
Sebastian Serth
2019-03-05 18:23:33 +01:00
parent 26c2069e02
commit 114f77e799
8 changed files with 12 additions and 9 deletions

View File

@ -58,7 +58,7 @@ h1 = "#{@exercise} (external user #{@external_user})"
td =
td =
td = @working_times_until[index] if index > 0
p = t('.addendum')
p = t('.addendum', delta: StatisticsHelper::WORKING_TIME_DELTA_IN_SECONDS / 60)
.d-none#wtimes data-working_times=ActiveSupport::JSON.encode(@working_times_until);
div#progress_chart.col-lg-12
.graph-functions-2