Scaffold exercise collection statistics

This commit is contained in:
Maximilian Grundke
2018-03-14 11:44:18 +01:00
parent be2a4d84fd
commit 119cc9ee71
5 changed files with 27 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
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: 'exercises.statistics.average_worktime', value: @average.round(3).to_s + 's')