add total number of submissions for exercise collections

This commit is contained in:
Ralf Teusner
2019-06-11 18:24:59 +02:00
parent 1b5ec49033
commit 34df8f8cdc
3 changed files with 3 additions and 0 deletions

View File

@@ -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