Description:
added show login in problem stat view
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@362 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r165:cd2dcf43475d - - 1 file changed: 3 inserted, 1 deleted
@@ -1,26 +1,28 | |||
|
1 | 1 | <h1>Problem stat: <%= @problem.name %></h1> |
|
2 | 2 | |
|
3 | 3 | <i>This is just a hack. Really not efficient.</i><br/><br/> |
|
4 | 4 | |
|
5 | 5 | <% if @submissions!=nil %> |
|
6 | 6 | <table class="info"> |
|
7 | 7 | <tr class="info-head"> |
|
8 |
- <th> |
|
|
8 | + <th>login</th> | |
|
9 | + <th>name</th> | |
|
9 | 10 | <th>submitted_at</th> |
|
10 | 11 | <th>points</th> |
|
11 | 12 | <th>comment</th> |
|
12 | 13 | </tr> |
|
13 | 14 | <% count = 0 %> |
|
14 | 15 | <% @submissions.each do |sub| %> |
|
15 | 16 | <tr class="<%= (count % 2 ==0) ? "info-even" : "info-odd" %>"> |
|
17 | + <td><%= sub.user.login %></td> | |
|
16 | 18 | <td><%= sub.user.full_name if sub.user %></td> |
|
17 | 19 | <td><%= sub.submitted_at.to_s %></td> |
|
18 | 20 | <td><%= sub.points %></td> |
|
19 | 21 | <td><div style="font-family: monospace"><%= sub.grader_comment %></div></td> |
|
20 | 22 | </tr> |
|
21 | 23 | <% count += 1 %> |
|
22 | 24 | <% end %> |
|
23 | 25 | </table> |
|
24 | 26 | <% else %> |
|
25 | 27 | No submission |
|
26 | 28 | <% end %> |
You need to be logged in to leave comments.
Login now