From: Benjamin Auder Date: Sun, 28 Jan 2018 21:35:12 +0000 (+0100) Subject: Show mode instead of coefficient on course page X-Git-Url: https://git.auder.net/js/pieces/css/current/R.css?a=commitdiff_plain;h=0b57a78b6f85ed2ce63c52f395e12b2125a8129e;p=qomet.git Show mode instead of coefficient on course page --- 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