Show More
Commit Description:
update NOTES...
Commit Description:
update NOTES
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@120 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/user_admin/user_stat.rhtml
| 32 lines
| 681 B
| text/html+ruby
| RhtmlLexer
|
|
r0 | <h1>User stat</h1> | ||
<div class="usermenu"> | ||||
<%= link_to 'List', :action => 'list' %> | ||||
<%= link_to 'Main', :controller => 'main', :action => 'list' %> | ||||
</div> | ||||
<table border="1"> | ||||
<tr><td>User</td> | ||||
<% @problems.each do |p| %> | ||||
<td><%= p.name %></td> | ||||
<% end %> | ||||
<td>Total</td> | ||||
</tr> | ||||
<% @scorearray.each do |sc| %> | ||||
<tr> | ||||
<% total = 0 %> | ||||
|
r8 | <% num_passed = 0 %> | ||
<% sc.each_index do |i| %> | ||||
<% if i==0 %> | ||||
<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> | ||
<% end %> | ||||
</table> | ||||