Description:
- bootstrapize problem/edit
- bootstrapize announcement/edit
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r650:72b80e42fb9b - - 5 files changed: 5 inserted, 116 deleted
@@ -88,10 +88,10 | |||||
|
88 |
|
88 | ||
|
89 | if @submission.valid? |
|
89 | if @submission.valid? |
|
90 | if @submission.save == false |
|
90 | if @submission.save == false |
|
91 |
- |
|
91 | + flash[:notice] = 'Error saving your submission' |
|
92 | elsif Task.create(:submission_id => @submission.id, |
|
92 | elsif Task.create(:submission_id => @submission.id, |
|
93 | :status => Task::STATUS_INQUEUE) == false |
|
93 | :status => Task::STATUS_INQUEUE) == false |
|
94 |
- |
|
94 | + flash[:notice] = 'Error adding your submission to task queue' |
|
95 | end |
|
95 | end |
|
96 | else |
|
96 | else |
|
97 | prepare_list_information |
|
97 | prepare_list_information |
@@ -106,7 +106,7 | |||||
|
106 | (submission.problem != nil) and |
|
106 | (submission.problem != nil) and |
|
107 | (submission.problem.available)) |
|
107 | (submission.problem.available)) |
|
108 | send_data(submission.source, |
|
108 | send_data(submission.source, |
|
109 |
- |
|
109 | + {:filename => submission.download_filename, |
|
110 | :type => 'text/plain'}) |
|
110 | :type => 'text/plain'}) |
|
111 | else |
|
111 | else |
|
112 | flash[:notice] = 'Error viewing source' |
|
112 | flash[:notice] = 'Error viewing source' |
@@ -1,7 +1,7 | |||||
|
1 | %h2 Live submit |
|
1 | %h2 Live submit |
|
2 | %br |
|
2 | %br |
|
3 |
|
3 | ||
|
4 |
- %textarea#text_ |
|
4 | + %textarea#text_sourcecode{style: "display:none"}~ @source |
|
5 | .container |
|
5 | .container |
|
6 | .row |
|
6 | .row |
|
7 | .col-md-12 |
|
7 | .col-md-12 |
@@ -41,7 +41,7 | |||||
|
41 | :javascript |
|
41 | :javascript |
|
42 | $(document).ready(function() { |
|
42 | $(document).ready(function() { |
|
43 | e = ace.edit("editor") |
|
43 | e = ace.edit("editor") |
|
44 |
- e.setValue($("#text_ |
|
44 | + e.setValue($("#text_sourcecode").val()); |
|
45 | e.gotoLine(1); |
|
45 | e.gotoLine(1); |
|
46 | $("#language_id").trigger('change'); |
|
46 | $("#language_id").trigger('change'); |
|
47 | brython(); |
|
47 | brython(); |
deleted file |
deleted file |
deleted file |
You need to be logged in to leave comments.
Login now