Show More
Commit Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug...
Commit Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@308 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/views/user_admin/user_stat.rhtml | 30 lines | 703 B | text/html+ruby | RhtmlLexer |
jittat
[web] better css styling...
r57 <h1>User grading results</h1>
pramook
initial commit...
r0
jittat
[web] better css styling...
r57 <table class="info">
jittat
[web] better user_stat...
r63 <tr class="info-head"><th>User</th><th>Name</th>
pramook
initial commit...
r0 <% @problems.each do |p| %>
jittat
[web] better css styling...
r57 <th><%= p.name %></th>
pramook
initial commit...
r0 <% end %>
jittat
[web] better css styling...
r57 <th>Total</th>
<th>Passed</th>
pramook
initial commit...
r0 </tr>
jittat
[web] better css styling...
r57 <% counter = 0 %>
pramook
initial commit...
r0 <% @scorearray.each do |sc| %>
jittat
[web] better css styling...
r57 <tr class="<%= (counter %2 ==0) ? "info-even" : "info-odd" %>">
pramook
initial commit...
r0 <% total = 0 %>
jittat
fixed problem edit form...
r8 <% num_passed = 0 %>
<% sc.each_index do |i| %>
jittat
[web] better user_stat...
r63 <% if i<=1 %>
jittat
fixed problem edit form...
r8 <td><%= sc[i] %></td>
<% else %>
<td><%= sc[i][0] %></td>
<% total += sc[i][0] %>
<% num_passed += 1 if sc[i][1] %>
<% end %>
pramook
initial commit...
r0 <% end %>
<td><%= total %></td>
jittat
fixed problem edit form...
r8 <td><%= num_passed %></td>
pramook
initial commit...
r0 </tr>
jittat
[web] better css styling...
r57 <% counter += 1 %>
pramook
initial commit...
r0 <% end %>
</table>