28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
h1
|
|
= @exercise_collection
|
|
= render('shared/edit_button', object: @exercise_collection)
|
|
|
|
= row(label: 'exercise_collections.name', value: @exercise_collection.name)
|
|
= row(label: 'exercise_collections.user', value: link_to(@exercise_collection.user.name, @exercise_collection.user)) unless @exercise_collection.user.nil?
|
|
= row(label: 'exercise_collections.use_anomaly_detection', value: @exercise_collection.use_anomaly_detection)
|
|
= row(label: 'exercise_collections.updated_at', value: @exercise_collection.updated_at)
|
|
|
|
h4 = t('activerecord.attributes.exercise_collections.exercises')
|
|
.table-responsive
|
|
table.table
|
|
thead
|
|
tr
|
|
th = t('activerecord.attributes.exercise.title')
|
|
th = t('activerecord.attributes.exercise.execution_environment')
|
|
th = t('activerecord.attributes.exercise.user')
|
|
th = t('shared.actions')
|
|
tbody
|
|
- @exercises.sort_by{|c| c.title}.each do |exercise|
|
|
tr
|
|
td = link_to(exercise.title, exercise)
|
|
td = link_to_if(exercise.execution_environment && policy(exercise.execution_environment).show?, exercise.execution_environment, exercise.execution_environment)
|
|
td = exercise.user.name
|
|
td = link_to(t('shared.statistics'), statistics_exercise_path(exercise))
|
|
|
|
= render('shared/pagination', collection: @exercises)
|