some locales (question text) and two more statistic metrics for exercise collections
This commit is contained in:
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user