Description:
fixed empty main/test bug
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@90 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
r41:25eaa3e37851 - - 1 file changed: 5 inserted, 3 deleted
@@ -1,12 +1,11 | |||||
|
1 | <h2>Test Interface</h2> |
|
1 | <h2>Test Interface</h2> |
|
2 |
|
2 | ||
|
3 | <% if @problems.length==0 %> |
|
3 | <% if @problems.length==0 %> |
|
4 |
- |
|
4 | + There is no submission |
|
5 | - <% return %> |
|
5 | + <% else %> |
|
6 | - <% end %> |
|
||
|
7 |
|
6 | ||
|
8 | <script type="text/javascript"> |
|
7 | <script type="text/javascript"> |
|
9 | var submissionCount = { |
|
8 | var submissionCount = { |
|
10 | <% @submissions.each do |submission| %> |
|
9 | <% @submissions.each do |submission| %> |
|
11 | <%= submission.problem_id %> : <%= submission.number %>, |
|
10 | <%= submission.problem_id %> : <%= submission.number %>, |
|
12 | <% end %> |
|
11 | <% end %> |
@@ -62,6 +61,9 | |||||
|
62 | <th>problem</th> |
|
61 | <th>problem</th> |
|
63 | <th>#</th> |
|
62 | <th>#</th> |
|
64 | <th>status</th> |
|
63 | <th>status</th> |
|
65 | </tr> |
|
64 | </tr> |
|
66 | <%= render :partial => 'test_request', :collection => @user.test_requests %> |
|
65 | <%= render :partial => 'test_request', :collection => @user.test_requests %> |
|
67 | </table> |
|
66 | </table> |
|
|
67 | + | ||
|
|
68 | + <% end %> | ||
|
|
69 | + |
You need to be logged in to leave comments.
Login now