Fix styling and link to exercise
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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')
|
||||
|
||||
|
Reference in New Issue
Block a user