Description:
[web] show full_name in problems/stat git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@187 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r98:f4a25aa9faf4 - - 1 file changed: 1 inserted, 1 deleted

@@ -4,23 +4,23
4 4
5 5 <% if @submissions!=nil %>
6 6 <table class="info">
7 7 <tr class="info-head">
8 8 <th>user_id</th>
9 9 <th>submitted_at</th>
10 10 <th>points</th>
11 11 <th>comment</th>
12 12 </tr>
13 13 <% count = 0 %>
14 14 <% @submissions.each do |sub| %>
15 15 <tr class="<%= (count % 2 ==0) ? "info-even" : "info-odd" %>">
16 - <td><%= sub.user_id %></td>
16 + <td><%= sub.user.full_name %></td>
17 17 <td><%= sub.submitted_at.to_s %></td>
18 18 <td><%= sub.points %></td>
19 19 <td><div style="font-family: monospace"><%= sub.grader_comment %></div></td>
20 20 </tr>
21 21 <% count += 1 %>
22 22 <% end %>
23 23 </table>
24 24 <% else %>
25 25 No submission
26 26 <% end %>
You need to be logged in to leave comments. Login now