Show More
Commit Description:
add adding list of users...
Commit Description:
add adding list of users
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@7 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/user_admin/user_stat.rhtml
| 26 lines
| 480 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 %> | ||||
<% sc.each do |i| %> | ||||
<td><%= i %></td> | ||||
<% total += i.to_i %> | ||||
<% end %> | ||||
<td><%= total %></td> | ||||
</tr> | ||||
<% end %> | ||||
</table> | ||||