Show More
Commit Description:
moved to ror 2.0.2, add user rel to model submission...
Commit Description:
moved to ror 2.0.2, add user rel to model submission git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@3 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 |
<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>