Show More
Commit Description:
shows more login/contest info on result page
Commit Description:
shows more login/contest info on result page
File last commit:
Show/Diff file:
Action:
app/views/user_admin/user_stat.rhtml | 43 lines | 1.0 KiB | 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
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
r162 <tr class="info-head">
<th>User</th>
<th>Name</th>
<th>Activated?</th>
Jittat Fakcharoenphol
shows more login/contest info on result page
r304 <th>Logged in</th>
<th>Contest(s)</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
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
r162 <% if i==0 %>
<td><%= sc[i].login %></td>
<td><%= sc[i].full_name %></td>
<td><%= sc[i].activated %></td>
Jittat Fakcharoenphol
shows more login/contest info on result page
r304 <td>
<%= sc[i].try(:contest_stat).try(:started_at)!=nil ? 'yes' : 'no' %>
</td>
<td>
<%= sc[i].contests.collect {|c| c.name}.join(', ') %>
</td>
jittat
fixed problem edit form...
r8 <% 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>