Show More
Commit Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug...
Commit Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@308 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/user_admin/user_stat.rhtml
| 30 lines
| 703 B
| text/html+ruby
| RhtmlLexer
|
|
r57 | <h1>User grading results</h1> | ||
|
r0 | |||
|
r57 | <table class="info"> | ||
|
r63 | <tr class="info-head"><th>User</th><th>Name</th> | ||
|
r0 | <% @problems.each do |p| %> | ||
|
r57 | <th><%= p.name %></th> | ||
|
r0 | <% end %> | ||
|
r57 | <th>Total</th> | ||
<th>Passed</th> | ||||
|
r0 | </tr> | ||
|
r57 | <% counter = 0 %> | ||
|
r0 | <% @scorearray.each do |sc| %> | ||
|
r57 | <tr class="<%= (counter %2 ==0) ? "info-even" : "info-odd" %>"> | ||
|
r0 | <% total = 0 %> | ||
|
r8 | <% num_passed = 0 %> | ||
<% sc.each_index do |i| %> | ||||
|
r63 | <% if i<=1 %> | ||
|
r8 | <td><%= sc[i] %></td> | ||
<% else %> | ||||
<td><%= sc[i][0] %></td> | ||||
<% total += sc[i][0] %> | ||||
<% num_passed += 1 if sc[i][1] %> | ||||
<% end %> | ||||
|
r0 | <% end %> | ||
<td><%= total %></td> | ||||
|
r8 | <td><%= num_passed %></td> | ||
|
r0 | </tr> | ||
|
r57 | <% counter += 1 %> | ||
|
r0 | <% end %> | ||
</table> | ||||