Description:
fixed new submission error showing nil compiler message
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r772:72eb3ebb9aef - - 1 file changed: 3 inserted, 1 deleted
@@ -56,13 +56,15 | |||||
|
56 | .modal-content |
|
56 | .modal-content |
|
57 | .modal-header |
|
57 | .modal-header |
|
58 | %button.close{type: 'button', data: {dismissed: :modal}, aria: {label: 'close'}} |
|
58 | %button.close{type: 'button', data: {dismissed: :modal}, aria: {label: 'close'}} |
|
59 | %span{aria: {hidden: 'true'}, data: {dismiss: 'modal'}} × |
|
59 | %span{aria: {hidden: 'true'}, data: {dismiss: 'modal'}} × |
|
60 | %h4 Compiler message |
|
60 | %h4 Compiler message |
|
61 | .modal-body |
|
61 | .modal-body |
|
62 | - %pre#compiler_msg= @submission.compiler_message |
|
62 | + %pre#compiler_msg |
|
|
63 | + - if @submission | ||
|
|
64 | + = @submission.compiler_message | ||
|
63 | .modal-footer |
|
65 | .modal-footer |
|
64 | %button.btn.btn-default{type: 'button', data: {dismiss: 'modal'}} Close |
|
66 | %button.btn.btn-default{type: 'button', data: {dismiss: 'modal'}} Close |
|
65 |
|
67 | ||
|
66 | :javascript |
|
68 | :javascript |
|
67 | $(document).ready(function() { |
|
69 | $(document).ready(function() { |
|
68 | e = ace.edit("editor") |
|
70 | e = ace.edit("editor") |
You need to be logged in to leave comments.
Login now