diff --git a/community/lms/widgets/Exercise.html b/community/lms/widgets/Exercise.html index 1dbaecfa..04361609 100644 --- a/community/lms/widgets/Exercise.html +++ b/community/lms/widgets/Exercise.html @@ -1,7 +1,7 @@ {% from "www/macros/livecode.html" import LiveCodeEditorJS, LiveCodeEditor with context %}
-

{{ exercise.title }}

+

Exercise {{exercise.index_label}}: {{ exercise.title }}

{{frappe.utils.md_to_html(exercise.description)}}
{% if exercise.image %} diff --git a/community/www/batch/progress.html b/community/www/batch/progress.html index 2083f046..983077b1 100644 --- a/community/www/batch/progress.html +++ b/community/www/batch/progress.html @@ -29,7 +29,7 @@

Batch Progress

{% for exercise in report.exercises %}
-

{{exercise.title}}

+

Exercise {{exercise.index_label}}: {{exercise.title}}

{% for s in report.get_submissions_of_exercise(exercise.name) %}

{{s.owner.full_name}}

diff --git a/community/www/batch/progress.py b/community/www/batch/progress.py index 5556d03d..af22ede5 100644 --- a/community/www/batch/progress.py +++ b/community/www/batch/progress.py @@ -25,7 +25,7 @@ class BatchReport: self.submissions_by_exercise[s.exercise].append(s) def get_exercises(self, course_name): - return frappe.get_all("Exercise", {"course": course_name}, ["name", "title"]) + return frappe.get_all("Exercise", {"course": course_name}, ["name", "title", "index_label"], order_by="index_label") def get_submissions_of_exercise(self, exercise_name): return self.submissions_by_exercise[exercise_name]