Show More
Commit Description:
added options to enable test-pair import
Commit Description:
added options to enable test-pair import
References:
File last commit:
Show/Diff file:
Action:
app/views/problems/stat.rhtml
| 28 lines
| 743 B
| text/html+ruby
| RhtmlLexer
|
|
r0 | <h1>Problem stat: <%= @problem.name %></h1> | ||
<i>This is just a hack. Really not efficient.</i><br/><br/> | ||||
<% if @submissions!=nil %> | ||||
|
r57 | <table class="info"> | ||
<tr class="info-head"> | ||||
|
r165 | <th>login</th> | ||
<th>name</th> | ||||
|
r57 | <th>submitted_at</th> | ||
<th>points</th> | ||||
<th>comment</th> | ||||
</tr> | ||||
<% count = 0 %> | ||||
|
r0 | <% @submissions.each do |sub| %> | ||
|
r57 | <tr class="<%= (count % 2 ==0) ? "info-even" : "info-odd" %>"> | ||
|
r165 | <td><%= sub.user.login %></td> | ||
|
r162 | <td><%= sub.user.full_name if sub.user %></td> | ||
|
r0 | <td><%= sub.submitted_at.to_s %></td> | ||
<td><%= sub.points %></td> | ||||
<td><div style="font-family: monospace"><%= sub.grader_comment %></div></td> | ||||
</tr> | ||||
|
r57 | <% count += 1 %> | ||
|
r0 | <% end %> | ||
</table> | ||||
<% else %> | ||||
No submission | ||||
<% end %> | ||||