Show More
Commit Description:
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
Commit Description:
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@359 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/views/problems/stat.rhtml | 26 lines | 692 B | text/html+ruby | RhtmlLexer |
<h1>Problem stat: <%= @problem.name %></h1>
<i>This is just a hack. Really not efficient.</i><br/><br/>
<% if @submissions!=nil %>
<table class="info">
<tr class="info-head">
<th>user_id</th>
<th>submitted_at</th>
<th>points</th>
<th>comment</th>
</tr>
<% count = 0 %>
<% @submissions.each do |sub| %>
<tr class="<%= (count % 2 ==0) ? "info-even" : "info-odd" %>">
<td><%= sub.user.full_name if sub.user %></td>
<td><%= sub.submitted_at.to_s %></td>
<td><%= sub.points %></td>
<td><div style="font-family: monospace"><%= sub.grader_comment %></div></td>
</tr>
<% count += 1 %>
<% end %>
</table>
<% else %>
No submission
<% end %>