From 34df8f8cdc08a112341a5e60c83623748edbd340 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Tue, 11 Jun 2019 18:24:59 +0200 Subject: [PATCH] add total number of submissions for exercise collections --- app/views/exercise_collections/statistics.html.slim | 1 + config/locales/de.yml | 1 + config/locales/en.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/app/views/exercise_collections/statistics.html.slim b/app/views/exercise_collections/statistics.html.slim index 8951f326..20b562ef 100644 --- a/app/views/exercise_collections/statistics.html.slim +++ b/app/views/exercise_collections/statistics.html.slim @@ -3,6 +3,7 @@ h1 = @exercise_collection = row(label: 'exercise_collections.name', value: @exercise_collection.name) = row(label: 'exercise_collections.updated_at', value: @exercise_collection.updated_at) = row(label: 'exercise_collections.exercises', value: @exercise_collection.exercises.count) += row(label: 'exercise_collections.submissions', value: @exercise_collection.exercises.joins(:submissions).count) = row(label: 'exercises.statistics.average_worktime', value: @exercise_collection.average_working_time.round(3).to_s + 's') #graph diff --git a/config/locales/de.yml b/config/locales/de.yml index b522a023..f36e5cbb 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -137,6 +137,7 @@ de: use_anomaly_detection: "Abweichungen in der Arbeitszeit erkennen" updated_at: "Letzte Änderung" exercises: "Aufgaben" + submissions: "Gesamtanzahl Submissions" user_exercise_feedback: user: "Autor" exercise: "Aufgabe" diff --git a/config/locales/en.yml b/config/locales/en.yml index a9a7c7a7..e9d30ec0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -137,6 +137,7 @@ en: use_anomaly_detection: "Enable Worktime Anomaly Detection" updated_at: "Last Update" exercises: "Exercises" + submissions: "Submissions (accumulated)" user_exercise_feedback: user: "Author" exercise: "Exercise"