Add solution to result page
This commit is contained in:
parent
e7d1acbb5c
commit
1c09a0629f
|
|
@ -1,6 +1,10 @@
|
|||
<template>
|
||||
<div class="assignment-with-submissions">
|
||||
<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>
|
||||
<router-link
|
||||
:to="submissionLink(submission)"
|
||||
|
|
@ -60,6 +64,16 @@
|
|||
font-size: toRem(35px);
|
||||
}
|
||||
|
||||
&__solution {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
&__solution-title {
|
||||
font-size: toRem(17px);
|
||||
font-weight: 800;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
&__link {
|
||||
display: block;
|
||||
&:first-of-type {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
query AssignmentWithSubmissions($id: ID!) {
|
||||
assignment(id: $id) {
|
||||
title
|
||||
solution
|
||||
submissions {
|
||||
id
|
||||
text
|
||||
|
|
|
|||
Loading…
Reference in New Issue