+
+
+
+Gradebook
+-
+ % for s in students:
+
-
+
${s['username']}
+ +
+ % endfor
+
diff --git a/templates/gradebook.html b/templates/gradebook.html index 22a763a410..244055cb04 100644 --- a/templates/gradebook.html +++ b/templates/gradebook.html @@ -1,15 +1,17 @@ <%inherit file="main.html" /> -<%namespace name="profile_graphs" file="profile_graphs.js"/> <%block name="headextra"> - % for s in students: - - %endfor + + + %block> <%include file="navigation.html" args="active_page=''" /> @@ -17,14 +19,58 @@
| Student | + %for section in templateSummary: + %if 'subscores' in section: + %for subsection in section['subscores']: +${subsection['label']} | + %endfor +${section['totallabel']} | + %else: +${section['category']} | + %endif + %endfor +${ "{0:.0%}".format( percentage ) } | + %def> + + %for student in students: +
|---|---|---|---|
| ${student['username']} | + %for section in student['grade_info']['grade_summary']: + %if 'subscores' in section: + %for subsection in section['subscores']: + ${percent_data( subsection['percentage'] )} + %endfor + ${percent_data( section['totalscore'] )} + %else: + ${percent_data( section['totalscore'] )} + %endif + %endfor +