Browse code

use only one table for ajax view

devgandi authored on 17/05/2013 at 16:38:33
Showing 1 changed files
... ...
@@ -1,11 +1,11 @@
1
-{% for level in object.level_set.all %}
2
-<h1>{{ level.name }}</h1>
3 1
 <table>
2
+{% for level in object.level_set.all %}
3
+    <tr><th colspan="2">{{ level.name }}</th></tr>
4
+    
4 5
     {% for score in level.sorted_scores %}
5 6
     <tr>
6 7
         <td>{{ score.score }}</td><td>{{ score.player.slug }}</td>
7 8
     </tr>
8 9
     {% endfor %}
9
-</table>
10
-
11 10
 {% endfor %}
11
+</table>