Description:
[web] better user_stat git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@138 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

r63:787ae01347a6 - - 2 files changed: 3 inserted, 2 deleted

@@ -76,6 +76,7
76 @users.each do |u|
76 @users.each do |u|
77 ustat = Array.new
77 ustat = Array.new
78 ustat[0] = u.login
78 ustat[0] = u.login
79 + ustat[1] = u.full_name
79 @problems.each do |p|
80 @problems.each do |p|
80 sub = Submission.find_last_by_user_and_problem(u.id,p.id)
81 sub = Submission.find_last_by_user_and_problem(u.id,p.id)
81 if (sub!=nil) and (sub.points!=nil)
82 if (sub!=nil) and (sub.points!=nil)
@@ -1,7 +1,7
1 <h1>User grading results</h1>
1 <h1>User grading results</h1>
2
2
3 <table class="info">
3 <table class="info">
4 - <tr class="info-head"><th>User</th>
4 + <tr class="info-head"><th>User</th><th>Name</th>
5 <% @problems.each do |p| %>
5 <% @problems.each do |p| %>
6 <th><%= p.name %></th>
6 <th><%= p.name %></th>
7 <% end %>
7 <% end %>
@@ -14,7 +14,7
14 <% total = 0 %>
14 <% total = 0 %>
15 <% num_passed = 0 %>
15 <% num_passed = 0 %>
16 <% sc.each_index do |i| %>
16 <% sc.each_index do |i| %>
17 - <% if i==0 %>
17 + <% if i<=1 %>
18 <td><%= sc[i] %></td>
18 <td><%= sc[i] %></td>
19 <% else %>
19 <% else %>
20 <td><%= sc[i][0] %></td>
20 <td><%= sc[i][0] %></td>
You need to be logged in to leave comments. Login now