Fix monitoring presence (TODO: weird Vue syntax...)
[qomet.git] / views / monitor.pug
index 00bf476..b3da2d6 100644 (file)
@@ -30,7 +30,7 @@ block content
                                                                        th Name
                                                                        th(v-for="(q,i) in assessment.questions") Q.{{ (i+1) }}
                                                        tbody
-                                                               tr.assessment(v-for="s in studentList(group)")
+                                                               tr.assessment(v-for="s in studentList(group)" :class="{absent:!s.present}")
                                                                        td(:class="{blur:!!s.blur,resize:!!s.resize,disconnect:!!s.disco}" @click="togglePresence(s)") {{ s.name }}
                                                                        td(v-for="(q,i) in assessment.questions" :style="{backgroundColor: getColor(s.number,i)}" @click="seeDetails(s.number,i)")  
                                        h4.title(@click="toggleDisplay('assessment')") Assessment