Code: Select all
app.get('/admin', function (req, res, next) {
var studentData = {
students: [
{
puid: '56',
name: 'Dr. Heathcliff Huxtable',
email: 'cosby@show.com',
picture: '',
studentPerformance:
{
correct: 9,
notAnswered: 0,
incorrect: 1
}
}
]
};
res.render('analytics_home', { studentData: studentData });
});
Code: Select all
h2 Overall Performance
h4 Active Students
ul#studentList.dd-list
each student in studentData.students
li.dd-item(id='student' + '#{student.puid}')
.dd-handle.thickLI
img.profilePic(src='#{student.picture}', alt='Student Pic')
| #{student.name}
br
| #{student.email}
a.btn.btn-sm.btn-primary.viewStudent(href='/admin/student/#{student.puid}') View
.progress(style='width: 60%; float: right;')
.progress-bar.progress-bar-success
.progress-bar.progress-bar-warning
.progress-bar.progress-bar-danger