diff --git a/app/views/exercise_collections/statistics.html.slim b/app/views/exercise_collections/statistics.html.slim index 20b562ef..4b256cdc 100644 --- a/app/views/exercise_collections/statistics.html.slim +++ b/app/views/exercise_collections/statistics.html.slim @@ -3,7 +3,16 @@ 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.users', value: @exercise_collection.exercises.joins(:submissions).group("submissions.user_id").count.count) += row(label: 'exercise_collections.solutions', value: @exercise_collection.exercises.joins(:submissions).group("submissions.user_id").group("id").count.count) = row(label: 'exercise_collections.submissions', value: @exercise_collection.exercises.joins(:submissions).count) +/ further metrics: +/ number of users that attempted at least one exercise @exercise_collection.exercises.joins(:submissions).group("submissions.user_id").count.count +/ number of solutions: @exercise_collection.exercises.joins(:submissions).group("submissions.user_id").group("id").count.count +/ further filters: +/ Only before specific date: date = DateTime.parse("2015-01-01 00:00:00.000000") ; @exercise_collection.exercises.joins(:submissions).where(["submissions.created_at > ?", date]).group("submissions.user_id").count.count +/ Only with specific cause: @exercise_collection.exercises.joins(:submissions).where("submissions.cause" == 'assess').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 2b5985ac..477083cf 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -139,7 +139,9 @@ de: use_anomaly_detection: "Abweichungen in der Arbeitszeit erkennen" updated_at: "Letzte Änderung" exercises: "Aufgaben" + solutions: "Gesamtanzahl Lösungsversuche" submissions: "Gesamtanzahl Submissions" + users: "Teilnehmer" user_exercise_feedback: user: "Autor" exercise: "Aufgabe" @@ -372,7 +374,7 @@ de: removeAllOnLine: Meine Kommentare auf dieser Zeile löschen listing: Die neuesten Kommentaranfragen request: "Kommentaranfrage stellen" - question: "Bitte beschreiben Sie kurz ihre Probleme oder nennen Sie den Programmteil, zu dem Sie Feedback wünschen." + question: "Bitte beschreiben Sie kurz ihre Probleme oder nennen Sie den Programmteil, zu dem Sie Feedback wünschen. Ihr Programmcode und eventuelle Fehlermeldungen werden automatisch zur Anfrage hinzugefügt." rfc_intervention: text: "Es scheint so als würden Sie Probleme mit der Aufgabe haben. Wenn Sie möchten, können wir Ihnen helfen!" break_intervention: diff --git a/config/locales/en.yml b/config/locales/en.yml index 84c4f89f..1f12928c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -139,7 +139,9 @@ en: use_anomaly_detection: "Enable Worktime Anomaly Detection" updated_at: "Last Update" exercises: "Exercises" + solutions: "Solution Attempts (accumulated)" submissions: "Submissions (accumulated)" + users: "Users" user_exercise_feedback: user: "Author" exercise: "Exercise" @@ -372,7 +374,7 @@ en: removeAllOnLine: Remove my comments on this line listing: Listing the newest comment requests request: "Request Comments" - question: "Please shortly describe your problem or the program part you would like to get feedback for." + question: "Please shortly describe your problem or the program part you would like to get feedback for. Your program code and potential error messages are automatically appended to your request." rfc_intervention: text: "It looks like you may struggle with this exercise. If you like we can help you out!" break_intervention: