From 0b57a78b6f85ed2ce63c52f395e12b2125a8129e Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Sun, 28 Jan 2018 22:35:12 +0100 Subject: [PATCH] Show mode instead of coefficient on course page --- views/course.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/course.pug b/views/course.pug index 16552ce..17bad0d 100644 --- a/views/course.pug +++ b/views/course.pug @@ -124,13 +124,13 @@ block content thead tr th Name - th Coefficient + th Mode th #Questions th Time tbody tr.assessment(v-for="(assessment,i) in assessmentArray" @click.left="actionAssessment(i)" @contextmenu.prevent="deleteAssessment(assessment)") td {{ assessment.name }} - td {{ assessment.coefficient }} + td {{ assessment.mode }} td {{ assessment.questions.reduce( (a,b) => { return b.active ? a+1 : a; }, 0) }} td {{ assessment.time }} if teacher -- 2.44.0