csmberkeley / scheduler

For managing our students, mentors, and sections
MIT License
8 stars 5 forks source link

Admin attendance view update #32

Open attang opened 8 years ago

attang commented 8 years ago

Currently if you login as an admin and click "Manage Sections", it will display a single number that lumps together all the attendance for that particular student. Instead of a single number, separate numbers denoting approved / excused / pending / denied is much more informative and helps out when considering when we need to drop the student.

Relevant files

Line 15 of the partial outputs the number with some logic on how to calculate it. Change it so it outputs all the attendance numbers of that student, separated by slashes and color-coded for readability. (You can choose the colors yourself). You probably don't need to change the controller, but I've pointed out the relevant function in case you need to.