Commit 46179896 by David Ormsbee

Remove extra braces that were causing mako syntax errors

parent 1f4e75d4
...@@ -61,8 +61,8 @@ ...@@ -61,8 +61,8 @@
%for student in students: %for student in students:
<tr> <tr>
<td><a href="${reverse('student_profile', <td><a href="${reverse('student_profile',
kwargs={'course_id' : course_id, kwargs=dict(course_id=course_id,
'student_id': student['id']})}"> student_id=student['id']))}">
${student['username']}</a></td> ${student['username']}</a></td>
%for section in student['grade_summary']['section_breakdown']: %for section in student['grade_summary']['section_breakdown']:
${percent_data( section['percent'] )} ${percent_data( section['percent'] )}
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
<h1>Instructor Dashboard</h1> <h1>Instructor Dashboard</h1>
<p> <p>
<a href="${reverse('gradebook', kwargs={'course_id': course.id})}">Gradebook</a> <a href="${reverse('gradebook', kwargs=dict(course_id=course.id))}">Gradebook</a>
<p> <p>
<a href="${reverse('grade_summary', kwargs={'course_id': course.id})}">Grade summary</a> <a href="${reverse('grade_summary', kwargs=dict(course_id=course.id))}">Grade summary</a>
</section> </section>
</div> </div>
......
...@@ -137,7 +137,7 @@ $(function() { ...@@ -137,7 +137,7 @@ $(function() {
percentageString = "{0:.0%}".format( float(earned)/total) if earned > 0 and total > 0 else "" percentageString = "{0:.0%}".format( float(earned)/total) if earned > 0 and total > 0 else ""
%> %>
<h3><a href="${reverse('courseware_section', kwargs={'course_id' : course.id, 'chapter' : chapter['url_name'], 'section' : section['url_name']})}"> <h3><a href="${reverse('courseware_section', kwargs=dict(course_id=course.id, chapter=chapter['url_name'], section=section['url_name']))}">
${ section['display_name'] }</a><span> ${"({0:.3n}/{1:.3n}) {2}".format( float(earned), float(total), percentageString )}</span></h3> ${ section['display_name'] }</a><span> ${"({0:.3n}/{1:.3n}) {2}".format( float(earned), float(total), percentageString )}</span></h3>
<p> <p>
${section['format']} ${section['format']}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment