projects
/
qomet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c545c2
)
Show mode instead of coefficient on course page
author
Benjamin Auder
<benjamin.auder@somewhere>
Sun, 28 Jan 2018 21:35:12 +0000
(22:35 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Sun, 28 Jan 2018 21:35:12 +0000
(22:35 +0100)
views/course.pug
patch
|
blob
|
blame
|
history
diff --git
a/views/course.pug
b/views/course.pug
index
16552ce
..
17bad0d
100644
(file)
--- 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