change gitignore and fixes to statistic graphs

This commit is contained in:
John Geiger
2016-05-12 15:52:59 +02:00
parent 6102d5eba4
commit fa0d893c21
5 changed files with 45 additions and 36 deletions

View File

@ -32,7 +32,7 @@ h1 = "#{@exercise} (external user #{@external_user})"
option data-submission=submission
=index
- index += 1
- working_times_until = Array.new
#timeline
.table-responsive
table.table
@ -54,7 +54,11 @@ h1 = "#{@exercise} (external user #{@external_user})"
- else
.unit-test-result.negative-result
td = Time.at(deltas[1..index].inject(:+)).utc.strftime("%H:%M:%S") if index > 0
-working_times_until.push((Time.at(deltas[1..index].inject(:+)).utc.strftime("%H:%M:%S") if index > 0))
p = t('.addendum')
.hidden#wtimes data-working_times=ActiveSupport::JSON.encode(working_times_until);
div#progress_chart.col-lg-12
.graph-functions-2
- else
p = t('.no_data_available')