DataTalksClub / course-management-platform

Django-based course management platform for Zoomcamps
https://courses.datatalks.club/
51 stars 16 forks source link

Add icon/mark to leaderboard that indicates student has passed project attempt #1/#2 #28

Open nishiikata opened 5 months ago

nishiikata commented 5 months ago

The UI could be improved but for starters it would be cool if it could be like

-------Name---------Score

1------Person1 1️⃣--------90 2------Person2-----------88 3------Person3 1️⃣--------87

Ideally the code would look like (snippet is based from here)

 <div class="">{{ enrollment.has_passed_attempt1|yesno:"1️⃣,(empty string here)"  }}</div>

if there was a attempt1 property on the class

I'd like to somehow hook up this class here

<li>Status: {{ submission.passed|yesno:"Passed,Failed" }}</li>

but I am not sure how leaderboard html would differentiate submission 1 from 2 without changing or adding some db data. Thank you