@@ -42,6 +42,10 @@ <h2 class="text-base font-semibold app-heading">Course overview</h2>
4242 < dt class ="app-muted "> Project completion rate</ dt >
4343 < dd class ="font-semibold app-heading "> {{ project_completion_rate }}%</ dd >
4444 </ div >
45+ < div class ="grid grid-cols-[minmax(0,1fr)_auto] gap-4 px-4 py-3 ">
46+ < dt class ="app-muted "> Average total score</ dt >
47+ < dd class ="font-semibold app-heading "> {{ avg_total_score }}</ dd >
48+ </ div >
4549 {% if graduates_count > 0 %}
4650 < div class ="grid grid-cols-[minmax(0,1fr)_auto] gap-4 px-4 py-3 ">
4751 < dt class ="app-muted "> Graduates</ dt >
@@ -97,6 +101,7 @@ <h2 class="text-base font-semibold app-heading">Homework statistics</h2>
97101 < tr >
98102 < th class ="px-3 py-2 "> Homework</ th >
99103 < th class ="px-3 py-2 text-right "> Submissions</ th >
104+ < th class ="px-3 py-2 text-right "> Completion</ th >
100105 < th class ="px-3 py-2 text-right "> Lecture time</ th >
101106 < th class ="px-3 py-2 text-right "> Homework time</ th >
102107 < th class ="px-3 py-2 text-right "> Total time</ th >
@@ -108,6 +113,7 @@ <h2 class="text-base font-semibold app-heading">Homework statistics</h2>
108113 < tr >
109114 < td class ="min-w-48 px-3 py-2 font-medium app-heading "> {{ hw_stat.homework.title }}</ td >
110115 < td class ="px-3 py-2 text-right "> {{ hw_stat.submissions_count }}</ td >
116+ < td class ="px-3 py-2 text-right "> {{ hw_stat.completion_rate }}%</ td >
111117 < td class ="px-3 py-2 text-right ">
112118 {% if hw_stat.time_lecture_median %}
113119 < span title ="Most students spent between {{ hw_stat.time_lecture_q25|floatformat:1 }} and {{ hw_stat.time_lecture_q75|floatformat:1 }} hours on lectures ">
@@ -152,6 +158,10 @@ <h3 class="font-medium app-heading">{{ hw_stat.homework.title }}</h3>
152158 < dt class ="app-muted "> Submissions</ dt >
153159 < dd class ="font-semibold app-heading "> {{ hw_stat.submissions_count }}</ dd >
154160 </ div >
161+ < div >
162+ < dt class ="app-muted "> Completion</ dt >
163+ < dd class ="font-semibold app-heading "> {{ hw_stat.completion_rate }}%</ dd >
164+ </ div >
155165 < div >
156166 < dt class ="app-muted "> Median score</ dt >
157167 < dd class ="font-semibold app-heading "> {% if hw_stat.score_median %}{{ hw_stat.score_median|floatformat:0 }}{% else %}-{% endif %}</ dd >
@@ -175,6 +185,39 @@ <h3 class="font-medium app-heading">{{ hw_stat.homework.title }}</h3>
175185 </ section >
176186 {% endif %}
177187
188+ {% if homework_difficulty_stats %}
189+ < section class ="mt-6 overflow-hidden rounded-md border app-border app-surface ">
190+ < div class ="border-b app-border app-surface-muted px-4 py-3 ">
191+ < h2 class ="text-base font-semibold app-heading "> Assignment difficulty</ h2 >
192+ < p class ="mt-1 text-sm app-muted ">
193+ Ranked by lowest median homework score. Lower median scores usually indicate harder assignments.
194+ </ p >
195+ </ div >
196+ < div class ="overflow-x-auto ">
197+ < table class ="min-w-full text-sm ">
198+ < thead class ="app-surface-muted text-left text-xs font-semibold uppercase app-muted ">
199+ < tr >
200+ < th class ="px-3 py-2 "> Rank</ th >
201+ < th class ="px-3 py-2 "> Homework</ th >
202+ < th class ="px-3 py-2 text-right "> Median score</ th >
203+ < th class ="px-3 py-2 text-right "> Completion</ th >
204+ </ tr >
205+ </ thead >
206+ < tbody class ="divide-y app-divide ">
207+ {% for hw_stat in homework_difficulty_stats %}
208+ < tr >
209+ < td class ="px-3 py-2 font-semibold app-heading "> {{ hw_stat.difficulty_rank }}</ td >
210+ < td class ="min-w-48 px-3 py-2 font-medium app-heading "> {{ hw_stat.homework.title }}</ td >
211+ < td class ="px-3 py-2 text-right "> {{ hw_stat.score_median|floatformat:0 }}</ td >
212+ < td class ="px-3 py-2 text-right "> {{ hw_stat.completion_rate }}%</ td >
213+ </ tr >
214+ {% endfor %}
215+ </ tbody >
216+ </ table >
217+ </ div >
218+ </ section >
219+ {% endif %}
220+
178221 {% if graduates_count > 0 %}
179222 < section class ="mt-6 border-t app-border pt-5 ">
180223 < h2 class ="text-base font-semibold app-heading "> Graduates</ h2 >
0 commit comments