
Tags can be added to exercises in the edit view. Tags can monitored under /tags. Added the concept of ProxyExercises which are a collection of Exercises. They can be found under /proxy_exercises Added Interventions as prework to show interventions later to the user. Added exercise/[:id]/working_time to return the working time of the user in this exercise and the average working time of all users in this exercise
24 lines
942 B
Plaintext
24 lines
942 B
Plaintext
- content_for :head do
|
|
= javascript_include_tag('http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js')
|
|
= stylesheet_link_tag('http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/default.min.css')
|
|
|
|
h1
|
|
= @proxy_exercise.title
|
|
- if policy(@proxy_exercise).edit?
|
|
= render('shared/edit_button', object: @proxy_exercise)
|
|
|
|
= row(label: 'exercise.title', value: @proxy_exercise.title)
|
|
= row(label: 'proxy_exercise.files_count', value: @exercises.count)
|
|
= row(label: 'exercise.description', value: @proxy_exercise.description)
|
|
h3 Exercises
|
|
.table-responsive
|
|
table.table
|
|
thead
|
|
tr
|
|
th = sort_link(@search, :title, t('activerecord.attributes.submission.exercise'))
|
|
th = sort_link(@search, :created_at, t('shared.created_at'))
|
|
- @proxy_exercise.exercises.each do |exercise|
|
|
tr
|
|
td = link_to(exercise.title, exercise)
|
|
td = l(exercise.created_at, format: :short)
|