Fix styling and link to exercise

This commit is contained in:
Maximilian Grundke
2017-11-22 13:22:10 +01:00
parent 4d8cee6fcb
commit 34b2bf9eb1
2 changed files with 54 additions and 32 deletions

View File

@ -95,6 +95,23 @@ a.file-heading {
left: 0;
}
.feedback-page {
.header {
font-weight: bold;
margin-bottom: 10px;
}
.value {
border: 1px solid grey;
padding: 10px;
margin-bottom: 10px;
}
.no-feedback {
font-weight: bold;
margin-top: 50px;
}
.feedback-header {
display: flex;
@ -117,3 +134,4 @@ a.file-heading {
font-weight: bold;
}
}
}

View File

@ -1,6 +1,10 @@
h1 = link_to(@exercise)
= row(label: 'exercise.description', value: render_markdown(@exercise.description))
h1 = link_to(@exercise, exercise_path(@exercise))
.feedback-page
.header = t('activerecord.attributes.exercise.description')
.value = render_markdown(@exercise.description)
.header = t('activerecord.models.user_exercise_feedback.other')
- if @feedbacks.nil? or @feedbacks.size == 0
.no-feedback = t('user_exercise_feedback.no_feedback')