From baec777e48f904372132585988d66c74809e77d6 Mon Sep 17 00:00:00 2001 From: MrSerth Date: Fri, 29 Mar 2019 15:59:27 +0100 Subject: [PATCH] Update app/views/exercise_collections/statistics.html.slim Co-Authored-By: rteusner --- app/views/exercise_collections/statistics.html.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/exercise_collections/statistics.html.slim b/app/views/exercise_collections/statistics.html.slim index acb0c57f..5e9462df 100644 --- a/app/views/exercise_collections/statistics.html.slim +++ b/app/views/exercise_collections/statistics.html.slim @@ -18,7 +18,7 @@ h1 = @exercise_collection h4.mt-4 = t('activerecord.attributes.exercise_collections.exercises') .table-responsive#exercise-list - table.table + table.table.sortable thead tr th = '#' @@ -38,4 +38,4 @@ h4.mt-4 = t('activerecord.attributes.exercise_collections.exercises') td = exercise.submissions.send(:final).distinct.count(:user_id) td = finishers_percentage = exercise.users.distinct.count == 0 ? 0 : (100.0 / exercise.users.distinct.count * exercise.finishers.count).round(2) td = exercise.average_percentage - td = link_to(t('shared.statistics'), statistics_exercise_path(exercise), 'data-turbolinks' => "false") if policy(exercise).statistics? \ No newline at end of file + td = link_to(t('shared.statistics'), statistics_exercise_path(exercise), 'data-turbolinks' => "false") if policy(exercise).statistics?