<div class="col-md-8 column">
<table border class="table">
<thead>
-<tr><th>Username<th>Total
+<tmpl_if problems><tr><th>Username<tmpl_loop problems><th><tmpl_var _></tmpl_loop><th>Total
+<tmpl_else><tr><th>Username<th>Score
+</tmpl_if>
+
<tbody>
-<tmpl_loop st><tr><td><tmpl_var user><td><tmpl_var score>
+<tmpl_loop st><tr><td><tmpl_var user>
+<tmpl_if problems><tmpl_loop scores><td><tmpl_var _>
+</tmpl_loop></tmpl_if><td><tmpl_var score>
</tmpl_loop>
</table>
</div>