h1 = t('.title') - exercises = Exercise.where(:id => @user.submissions.group(:exercise_id).select(:exercise_id).distinct) .table-responsive table.table.table-striped.sortable thead tr - ['.exercise', '.score', '.runs', '.worktime'].each do |title| th.header = t(title) tbody - exercises.each do |exercise| - if statistics[exercise.id] - stats = statistics[exercise.id] tr td = link_to_if policy(exercise).show?, exercise, controller: "exercises", action: "statistics", external_user_id: @user.id, id: exercise.id td = stats["maximum_score"] or 0 td = stats["runs"] or 0 td = stats["working_time"] or 0