diff --git a/app/views/exercises/external_users/statistics.html.slim b/app/views/exercises/external_users/statistics.html.slim index 4a1e7b77..7d00f3b1 100644 --- a/app/views/exercises/external_users/statistics.html.slim +++ b/app/views/exercises/external_users/statistics.html.slim @@ -40,7 +40,8 @@ h1 = "#{@exercise} (external user #{@external_user})" th.header = t(title) tbody - @submissions_and_interventions.each_with_index do |this, index| - tr data-id=this.id class=('highlight' if index > 0 and @working_times_until[index] == @working_times_until[index - 1]) + - highlight = (index > 0 and @working_times_until[index] == @working_times_until[index - 1] and this.created_at > @submissions_and_interventions[index - 1].created_at) + tr data-id=this.id class=('highlight' if highlight) td.clickable = this.created_at.strftime("%F %T") - if this.is_a?(Submission) td = this.cause