Add solution to result page
This commit is contained in:
parent
e7d1acbb5c
commit
1c09a0629f
|
|
@ -1,6 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="assignment-with-submissions">
|
<div class="assignment-with-submissions">
|
||||||
<h1 class="assignment-with-submissions__title">{{assignment.title}}</h1>
|
<h1 class="assignment-with-submissions__title">{{assignment.title}}</h1>
|
||||||
|
<div class="assignment-with-submissions__solution" v-if="assignment.solution">
|
||||||
|
<h4 class="assignment-with-submissions__solution-title">Lösung</h4>
|
||||||
|
<p class="assignment-with-submissions__solution-text">{{assignment.solution}}</p>
|
||||||
|
</div>
|
||||||
<p v-if="!assignment.submissions.length">Zu diesem Auftrag sind noch keine Ergebnisse vorhanden</p>
|
<p v-if="!assignment.submissions.length">Zu diesem Auftrag sind noch keine Ergebnisse vorhanden</p>
|
||||||
<router-link
|
<router-link
|
||||||
:to="submissionLink(submission)"
|
:to="submissionLink(submission)"
|
||||||
|
|
@ -60,6 +64,16 @@
|
||||||
font-size: toRem(35px);
|
font-size: toRem(35px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__solution {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__solution-title {
|
||||||
|
font-size: toRem(17px);
|
||||||
|
font-weight: 800;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
&__link {
|
&__link {
|
||||||
display: block;
|
display: block;
|
||||||
&:first-of-type {
|
&:first-of-type {
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
query AssignmentWithSubmissions($id: ID!) {
|
query AssignmentWithSubmissions($id: ID!) {
|
||||||
assignment(id: $id) {
|
assignment(id: $id) {
|
||||||
title
|
title
|
||||||
|
solution
|
||||||
submissions {
|
submissions {
|
||||||
id
|
id
|
||||||
text
|
text
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue