Skip to content

Commit

Permalink
Added total number of students to results table. Table accessibility …
Browse files Browse the repository at this point in the history
…improvements
  • Loading branch information
vkaravir committed Nov 9, 2012
1 parent 986ae79 commit 2f93a14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/course/_results_table.html
@@ -1,17 +1,17 @@
<table class="table table-striped table-bordered">
<thead>
<tr>
<th></th>
<th scope="col">Student (N={{result_table.results|length}})</th>
{% for exercise in result_table.exercises %}
<th><a href="{{ exercise.get_absolute_url }}">{{ exercise.name }}</a></th>
<th scope="col"><a href="{{ exercise.get_absolute_url }}">{{ exercise.name }}</a></th>
{% endfor %}
<th>Sum</th>
</tr>
</thead>
<tbody>
{% for row in result_table.results %}
<tr>
<th>{{ row.student.user.username }}</th>
<th scope="row">{{ row.student.user.username }}</th>
{% for grade in row.grades %}
<td>{% if grade != None %}{{ grade }}{% endif %}</td>
{% endfor %}
Expand Down

0 comments on commit 2f93a14

Please sign in to comment.