Merge remote-tracking branch 'origin/master' into rfc_run_assess_messages
# Conflicts: # app/assets/stylesheets/request-for-comments.css.scss
This commit is contained in:
@ -62,7 +62,9 @@ a.file-heading {
|
|||||||
fill: #ffd897;
|
fill: #ffd897;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container > form > .actions {
|
||||||
|
margin-bottom: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
.d3-tip {
|
.d3-tip {
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
@ -114,9 +114,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#commentitor {
|
#commentitor {
|
||||||
margin-top: 2rem;
|
margin-bottom: 2rem;
|
||||||
height: 600px;
|
height: 600px;
|
||||||
background-color:#f9f9f9
|
background-color:#f9f9f9
|
||||||
}
|
}
|
||||||
|
|
||||||
.ace_tooltip {
|
.ace_tooltip {
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
li.panel.panel-default
|
li.panel.panel-default
|
||||||
.panel-heading role="tab" id="heading"
|
.panel-heading role="tab" id="heading"
|
||||||
a.file-heading data-toggle="collapse" data-parent="#files" href="#collapse#{id}"
|
a.file-heading data-toggle="collapse" href="#collapse#{id}"
|
||||||
div.clearfix role="button"
|
div.clearfix role="button"
|
||||||
span = f.object.name
|
span = f.object.name
|
||||||
.panel-collapse.collapse-in id="collapse#{id}" role="tabpanel"
|
.panel-collapse.collapse class=('in' if f.object.name.nil?) id="collapse#{id}" role="tabpanel"
|
||||||
.panel-body
|
.panel-body
|
||||||
.clearfix = link_to(t('shared.destroy'), '#', class:'btn btn-warning btn-sm discard-file pull-right')
|
.clearfix = link_to(t('shared.destroy'), '#', class:'btn btn-warning btn-sm discard-file pull-right')
|
||||||
.form-group
|
.form-group
|
||||||
|
@ -38,19 +38,28 @@
|
|||||||
.form-group
|
.form-group
|
||||||
= f.label(t('activerecord.attributes.exercise.worktime'))
|
= f.label(t('activerecord.attributes.exercise.worktime'))
|
||||||
= f.number_field "expected_worktime_minutes", value: @exercise.expected_worktime_seconds / 60, in: 1..1000, step: 1
|
= f.number_field "expected_worktime_minutes", value: @exercise.expected_worktime_seconds / 60, in: 1..1000, step: 1
|
||||||
h2 Tags
|
|
||||||
.table-responsive
|
h2 = t('exercises.form.tags')
|
||||||
table.table#tags-table
|
ul.list-unstyled.panel-group
|
||||||
thead
|
li.panel.panel-default
|
||||||
tr
|
.panel-heading role="tab" id="heading"
|
||||||
th = t('activerecord.attributes.exercise.selection')
|
a.file-heading data-toggle="collapse" href="#tag-collapse"
|
||||||
th = sort_link(@search, :title, t('activerecord.attributes.tag.name'))
|
div.clearfix role="button"
|
||||||
th = t('activerecord.attributes.tag.difficulty')
|
span = t('exercises.form.click_to_collapse')
|
||||||
= collection_check_boxes :exercise, :tag_ids, @exercise_tags, :tag_id, :id do |b|
|
.panel-collapse.collapse id="tag-collapse" role="tabpanel"
|
||||||
tr
|
.table-responsive
|
||||||
td = b.check_box
|
table.table#tags-table
|
||||||
td = b.object.tag.name
|
thead
|
||||||
td = number_field "tag_factors[#{b.object.tag.id}]", :factor, :value => b.object.factor, in: 1..10, step: 1
|
tr
|
||||||
|
th = t('activerecord.attributes.exercise.selection')
|
||||||
|
th = sort_link(@search, :title, t('activerecord.attributes.tag.name'))
|
||||||
|
th = t('activerecord.attributes.tag.difficulty')
|
||||||
|
= collection_check_boxes :exercise, :tag_ids, @exercise_tags, :tag_id, :id do |b|
|
||||||
|
tr
|
||||||
|
td = b.check_box
|
||||||
|
td = b.object.tag.name
|
||||||
|
td = number_field "tag_factors[#{b.object.tag.id}]", :factor, :value => b.object.factor, in: 1..10, step: 1
|
||||||
|
|
||||||
h2 = t('activerecord.attributes.exercise.files')
|
h2 = t('activerecord.attributes.exercise.files')
|
||||||
ul#files.list-unstyled.panel-group
|
ul#files.list-unstyled.panel-group
|
||||||
= f.fields_for :files do |files_form|
|
= f.fields_for :files do |files_form|
|
||||||
|
@ -35,7 +35,7 @@ h1 = @exercise
|
|||||||
tbody
|
tbody
|
||||||
- @exercise.send(symbol).distinct().each do |user|
|
- @exercise.send(symbol).distinct().each do |user|
|
||||||
- if user_statistics[user.id] then us = user_statistics[user.id] else us = {"maximum_score" => nil, "runs" => nil}
|
- if user_statistics[user.id] then us = user_statistics[user.id] else us = {"maximum_score" => nil, "runs" => nil}
|
||||||
- label = current_user.teacher? ? "#{user.name}" : "#{user.name} (#{user.email})"
|
- label = "#{user.displayname}"
|
||||||
tr
|
tr
|
||||||
td = link_to_if symbol==:external_users, label, {controller: "exercises", action: "statistics", external_user_id: user.id, id: @exercise.id}
|
td = link_to_if symbol==:external_users, label, {controller: "exercises", action: "statistics", external_user_id: user.id, id: @exercise.id}
|
||||||
td = us['maximum_score'] or 0
|
td = us['maximum_score'] or 0
|
||||||
|
@ -10,7 +10,7 @@ h1 = ProxyExercise.model_name.human(count: 2)
|
|||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
th = sort_link(@search, :title, t('activerecord.attributes.proxy_exercise.title'))
|
th = sort_link(@search, :title, t('activerecord.attributes.proxy_exercise.title'))
|
||||||
th = "Token"
|
th = t('activerecord.attributes.exercise.token')
|
||||||
th = t('activerecord.attributes.proxy_exercise.files_count')
|
th = t('activerecord.attributes.proxy_exercise.files_count')
|
||||||
th colspan=6 = t('shared.actions')
|
th colspan=6 = t('shared.actions')
|
||||||
tbody
|
tbody
|
||||||
|
@ -10,6 +10,7 @@ h1
|
|||||||
= row(label: 'exercise.title', value: @proxy_exercise.title)
|
= row(label: 'exercise.title', value: @proxy_exercise.title)
|
||||||
= row(label: 'proxy_exercise.files_count', value: @exercises.count)
|
= row(label: 'proxy_exercise.files_count', value: @exercises.count)
|
||||||
= row(label: 'exercise.description', value: @proxy_exercise.description)
|
= row(label: 'exercise.description', value: @proxy_exercise.description)
|
||||||
|
= row(label: 'exercise.token', value: @proxy_exercise.token)
|
||||||
h3 Exercises
|
h3 Exercises
|
||||||
.table-responsive
|
.table-responsive
|
||||||
table.table
|
table.table
|
||||||
|
@ -42,6 +42,7 @@ de:
|
|||||||
allow_file_creation: "Dateierstellung erlauben"
|
allow_file_creation: "Dateierstellung erlauben"
|
||||||
difficulty: Schwierigkeitsgrad
|
difficulty: Schwierigkeitsgrad
|
||||||
worktime: "vermutete Arbeitszeit in Minuten"
|
worktime: "vermutete Arbeitszeit in Minuten"
|
||||||
|
token: "Aufgaben-Token"
|
||||||
proxy_exercise:
|
proxy_exercise:
|
||||||
title: Title
|
title: Title
|
||||||
files_count: Anzahl der Aufgaben
|
files_count: Anzahl der Aufgaben
|
||||||
@ -260,6 +261,8 @@ de:
|
|||||||
path: 'Pfad der Datei im Projektverzeichnis. Kann auch leer gelassen werden.'
|
path: 'Pfad der Datei im Projektverzeichnis. Kann auch leer gelassen werden.'
|
||||||
form:
|
form:
|
||||||
add_file: Datei hinzufügen
|
add_file: Datei hinzufügen
|
||||||
|
tags: "Tags"
|
||||||
|
click_to_collapse: "Zum Aus-/Einklappen hier klicken..."
|
||||||
implement:
|
implement:
|
||||||
alert:
|
alert:
|
||||||
text: 'Ihr Browser unterstützt nicht alle Funktionalitäten, die %{application_name} benötigt. Bitte nutzen Sie einen modernen Browser, um %{application_name} zu besuchen.'
|
text: 'Ihr Browser unterstützt nicht alle Funktionalitäten, die %{application_name} benötigt. Bitte nutzen Sie einen modernen Browser, um %{application_name} zu besuchen.'
|
||||||
|
@ -42,6 +42,7 @@ en:
|
|||||||
allow_file_creation: "Allow file creation"
|
allow_file_creation: "Allow file creation"
|
||||||
difficulty: Difficulty
|
difficulty: Difficulty
|
||||||
worktime: "Expected worktime in minutes"
|
worktime: "Expected worktime in minutes"
|
||||||
|
token: "Exercise Token"
|
||||||
proxy_exercise:
|
proxy_exercise:
|
||||||
title: Title
|
title: Title
|
||||||
files_count: Exercises Count
|
files_count: Exercises Count
|
||||||
@ -260,6 +261,8 @@ en:
|
|||||||
path: "The file's path in the project tree. Can be left blank."
|
path: "The file's path in the project tree. Can be left blank."
|
||||||
form:
|
form:
|
||||||
add_file: Add file
|
add_file: Add file
|
||||||
|
tags: "Tags"
|
||||||
|
click_to_collapse: "Click to expand/collapse..."
|
||||||
implement:
|
implement:
|
||||||
alert:
|
alert:
|
||||||
text: 'Your browser does not support features required for using %{application_name}. Please access %{application_name} using a modern browser.'
|
text: 'Your browser does not support features required for using %{application_name}. Please access %{application_name} using a modern browser.'
|
||||||
|
Reference in New Issue
Block a user